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

Use SnoopPrecompile #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Use SnoopPrecompile #52

wants to merge 1 commit into from

Conversation

mcabbott
Copy link
Owner

@mcabbott mcabbott commented Sep 3, 2022

This aims to reduce startup time using https://github.com/timholy/SnoopCompile.jl, as described in this thread.

So far uses existing warm-up cases, but perhaps it should target many of the runtime functions too.

@mcabbott
Copy link
Owner Author

Moving to StaticArraysCore might also be worthwhile, since this is the bulk of this time:

julia> @time_imports using TensorCast
     13.3 ms  MacroTools
      2.7 ms  StaticArraysCore
    573.2 ms  StaticArrays
      0.9 ms  TupleTools
     33.2 ms  Strided 37.04% compilation time
      0.9 ms  DelimitedFiles
      0.3 ms  Compat
     83.3 ms  ChainRulesCore
      0.3 ms  Adapt
      2.9 ms  GPUArraysCore
      0.2 ms  Requires
     23.6 ms  TransmuteDims 82.86% compilation time (10% recompilation)
      1.4 ms  LazyStack
    132.9 ms  TensorCast

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

Successfully merging this pull request may close these issues.

None yet

1 participant