Skip to content
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

Where does the compilation time come from? #14

Open
ParadaCarleton opened this issue Oct 23, 2021 · 3 comments
Open

Where does the compilation time come from? #14

ParadaCarleton opened this issue Oct 23, 2021 · 3 comments

Comments

@ParadaCarleton
Copy link

What the title says, mostly; I was interested in using this while writing a package of mine, but the compilation time was just a touch over what I'd be willing to add to a package. A useful tool here.

@ParadaCarleton
Copy link
Author

(I'm unable to figure out where "DataTypesBasic" is actually being used; if it's not being used, it can be dropped to reduce compilation time.)

@schlichtanders
Copy link
Member

Hello @ParadaCarleton. Thank you very much for your remark.
I will take a look into it and report back.

DataTypesBasic is also very small, so there really should not be much to compile in principle.
Thank you also for the link to tools for compilation time imprvoement

@ParadaCarleton
Copy link
Author

The compile time issue seems to have gotten significantly worse, as it now takes about a second to load:

julia> @time using WhereTraits
  0.948938 seconds (3.40 M allocations: 239.641 MiB, 2.33% gc time, 6.81% compilation time)

SimpleTraits.jl takes just 1% as much time, for comparison:

julia> @time using SimpleTraits
0.015284 seconds (40.05 k allocations: 3.885 MiB, 26.49% compilation time)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants