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

Faster startup #33

Closed
wants to merge 1 commit into from
Closed

Conversation

PallHaraldsson
Copy link

@PallHaraldsson PallHaraldsson commented Jun 4, 2020

Fixes #32

@PallHaraldsson
Copy link
Author

This it the same code as at Plots.jl, except it has: @optlevel 1

Here lower either is a bit faster (or no change) for startup, and shouldn't matter after. If in doubt I would use the other opt. level elsewhere, e.g. at VegaLite.jl.

FYI: I got startup of VegaLite.jl down to 1.9 sec. but that was with a setting you wouldn't want as first plot was slower, and second as slow.

@PallHaraldsson
Copy link
Author

PallHaraldsson commented Jun 8, 2020

What should be possible:

$ ~/julia-1.6-DEV-latest-7c980c6af5/bin/julia --startup-file=no -O0 --compile=min -q

julia> @time using VegaDatasets
  2.441897 seconds (3.31 M allocations: 202.032 MiB, 1.18% gc time)

vs:

julia> @time using VegaDatasets
  7.573305 seconds (12.37 M allocations: 645.933 MiB, 4.22% gc time)

julia> @time using VegaDatasets
  1.501893 seconds (2.20 M allocations: 109.827 MiB, 1.87% gc time)

julia> @time using VegaDatasets
  0.000447 seconds (582 allocations: 34.594 KiB)

@PallHaraldsson PallHaraldsson deleted the patch-1 branch June 8, 2020 16:51
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.

Lower optimizations takes two (five) seconds of loading
1 participant