-
-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add heap size hint #2774
Add heap size hint #2774
Conversation
Try this Pull Request!Open Julia and type: julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/kir19890817/Pluto.jl", rev="add-julia-heap-size-hint")
julia> using Pluto |
One thing we've found to work better than heap-size-hint, is actually invoking the |
I see; it sounds like a good thing to check. Let me have a look. |
Can you make this PR again, but:
I would recommend searching for |
@pankgeorg That's a nice suggestion but let's track that in a new issue and PR! This is just about a command line flag that was added in Julia 1.9 |
True, this is completely unrelated to the PR, it's mostly an offtopic response that addresses the intent of the PR, not the content of it. I'll open a new issue, and probably also a PR for memory management. |
Sure, thanks for comment! I've initially tried to put it into |
Hey, @pankgeorg thanks for the suggestion again! Could you please elaborate a bit on what you mean by background task here? As far as I can track (with my poor understanding of the codebase as a disclaimer), for instance, in case of running the notebooks for exporting, in PlutoSliderServer.jl in the function new = process(s; server_session, settings, output_dir, start_dir, progress)
|
Thanks @kirill-kondrashov ! Let us know when the PR is ready |
Indeed. Pluto does inject some code to the host process though, so it could also add a The tricky part (which julia could/should do, but currently doesn't) is to track
I think the GC doesn't keep statistics of allocations around, so knowing [2] isn't very easy, at least not without consulting the kernel. On the other hand, none of this should be Pluto's job in the first place right? This effort should most likely be another package. |
188e392
to
b230cc3
Compare
b230cc3
to
b120958
Compare
Seems to pass the tests now |
Makes sense! I think Pluto, indeed, shouldn't be the first place; PlutoSliderServer seemed to me as a suitable place to insert that procedure. |
This MR intends to integrate the heap size hint:
For the Julia processes launched in Pluto.