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

improve compile latency #1686

Closed
wants to merge 17 commits into from
Closed

improve compile latency #1686

wants to merge 17 commits into from

Conversation

SimonDanisch
Copy link
Member

  • improve inferrability
  • remove StaticArrays
  • update precompiles

Copy link
Contributor

@timholy timholy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@@ -0,0 +1,4 @@
t_using = @elapsed using CairoMakie
t_plot = @elapsed save("test.png", scatter(1:4))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
t_plot = @elapsed save("test.png", scatter(1:4))
t_plot = (tstart = time(); save("test.png", scatter(1:4)); time() - tstart)

For latency it's safer to use this form because @time and @elapsed will precompile the workload. (If most of it is hidden behind runtime dispatch, this isn't a big deal, but in cases with really good inference you might eliminate the latency by trying to measure it.)

Pkg.precompile("CairoMakie")

result_1_7 = read(`julia --project=. ./benchmark-ttfp.jl`, String)
result_th = read(`./../../../../julia_th/julia --project=. ./benchmark-ttfp.jl`, String)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing most people won't have this directory on their system. (Glad you're testing it, though!)

@SimonDanisch
Copy link
Member Author

If I'm not missing something, this can be closed in favor of:
#1697
#1696
#1694

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants