JuliaPluto / PlutoUI.jl

https://featured.plutojl.org/basic/plutoui.jl
The Unlicense
299 stars 54 forks source link

🚀 Use "Disable in file" feature to improve loading times from 4 sec to 1.5 sec #231

Closed fonsp closed 1 year ago

fonsp commented 1 year ago

BEFORE

julia> begin 
       import Pkg; 
       @time Pkg.precompile(); 
       @time import PlutoUI
       end
Precompiling project...
  1 dependency successfully precompiled in 4 seconds. 71 already precompiled.
  4.558229 seconds (1.94 M allocations: 132.929 MiB, 0.39% gc time, 0.87% compilation time)
  0.271933 seconds (979.17 k allocations: 63.955 MiB, 1.61% compilation time)

AFTER

julia> begin 
       import Pkg; 
       @time Pkg.precompile(); 
       @time import PlutoUI
       end
Precompiling project...
  1 dependency successfully precompiled in 1 seconds. 71 already precompiled.
  1.618362 seconds (1.94 M allocations: 133.126 MiB, 1.16% gc time, 2.41% compilation time)
  0.126549 seconds (419.31 k allocations: 27.533 MiB, 3.40% compilation time)

65% improvement :)