-
Notifications
You must be signed in to change notification settings - Fork 31
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
Recompilation and load time #169
Comments
We should be able to do something about it. |
Merci! |
I thought perhaps it was some invalidations causing recompilation since
But SnoopCompile isn't giving me anything useful right now :)
|
I'm seeing much worse than this in some cases:
|
Any invalidations showing up in that particular case that can be traced back to |
I spent a little more time looking at this one @oschulz @oscardssmith. Not sure this is actually being caused by anything that First I commented out
That's not surprising I would think. So then I just swapped the body of the __init__ = nothing # (hook!(template_hook); nothing) That was under the assumption that it was calling
Which, for me, is no different to the timings of the original
Bit weird. So then I just made a MWE package with just module InitTest
__init__() = nothing
end # module InitTest And that resulted in the exact same behaviour:
To me this doesn't look like anything to do with this package, but rather a Julia issue. I'd be grateful if anyone else is able to replicate the above behaviour. |
Maybe we need one of the compiler experts on this ... |
Gabriel is looking into this. Current suspicion is that it might be an issue with the timing. |
Edit: What is written below seems to only be true on macOS. This regressed in 1.11.3:
Looks fixed on JuliaLang/julia#57871, probably due to this: JuliaLang/julia@56909d7. |
Thanks @KristofferC. |
I am still not sure this is completely resolved. |
According to
@time
and@time_imports
, DocStringExtensions seems to recompile on every load, resulting in comparatively long load time (seems to vary a lot, but I've seen up to 75 ms). Now that very low level packages like SpecialFunctions depend on DocStringExtensions, this is becoming more noticeable. Is this inherent (recompilation) to the way DocStringExtensions works, or can we do something about this?The text was updated successfully, but these errors were encountered: