ThreadPinning.jl icon indicating copy to clipboard operation
ThreadPinning.jl copied to clipboard

Try to improve package load time

Open carstenbauer opened this issue 1 year ago • 1 comments

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)

carstenbauer avatar Jan 28 '23 21:01 carstenbauer