-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
Significant GC collection time in Pkg.add (and other performance related things) #4116
Comments
Tough to say, on the other hand the code allocates ~360MiB to do "nothing" and someone needs to pay the cost of cleaning that up. I don't find it surprising that the code hits at least one GC pause. |
Yeah, the point is not to blame the GC but to say we shouldn't need to allocate so much temp stuff (5M allocations...). |
I added a branch here https://github.com/JuliaLang/Pkg.jl/tree/kc/timeroutput to do some TimerOutputting:
Also the |
The |
20%+ GC time. Should not be needed...
Tangentially, the no-op precompile check in the end of
Pkg.add
is a quite significant contributor to the timing above:The text was updated successfully, but these errors were encountered: