ThreadPinning.jl
ThreadPinning.jl copied to clipboard
Try to improve package load time
Apart from initial attempts to use SnoopPrecompile we haven't yet spent much/any time on optimizing the load time. Apart from using general strategies (like avoiding invalidations etc.) we should try to benchmark and improve __init__()
and _create_sysinfo_obj
in particular.
FWIW, also citing @giordano from Discord:
also for the record loading time improved quite a lot in v1.9
giordano@ln04:~/software> julia-1.8.5/bin/julia -q julia> @time using ThreadPinning 3.089130 seconds (878.40 k allocations: 55.383 MiB, 87.15% compilation time) julia> giordano@ln04:~/software> julia-1.9.0-beta3/bin/julia -q julia> @time using ThreadPinning 0.573002 seconds (467.70 k allocations: 32.458 MiB, 36.22% compilation time)