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

notable startup latency #1052

Closed
thautwarm opened this issue Aug 29, 2023 · 3 comments
Closed

notable startup latency #1052

thautwarm opened this issue Aug 29, 2023 · 3 comments

Comments

@thautwarm
Copy link

It seems that the latency gets worse with newer Julia. Here are the startup tests on my local machine:

Julia v1.9.2:

julia> @time using PyCall
  0.427297 seconds (250.30 k allocations: 18.071 MiB, 1.88% compilation time)

julia> @time using PyCall
  1.162834 seconds (1.32 M allocations: 91.732 MiB, 5.27% gc time, 99.92% compilation time: 100% of which was recompilation)

Julia v1.7.3:

julia> @time using PyCall
  0.689246 seconds (1.16 M allocations: 81.998 MiB, 1.08% gc time, 42.07% compilation time)

julia> @time using PyCall
  0.630776 seconds (1.98 M allocations: 104.340 MiB, 2.96% gc time, 99.86% compilation time)

Julia v1.9 is quite slow at loading PyCall comparing to it used to be in v1.7. I wonder if there are any known reasons for the latency or possible approaches to address this?

@MilesCranmer
Copy link
Contributor

MilesCranmer commented Jan 8, 2024

Hey @thautwarm,
I was wondering if this is still an issue on v1.10 with JuliaLang/julia#49525 merged?

I see this locally on 1.10.0:

julia> @time using PyCall
  0.311416 seconds (367.73 k allocations: 24.860 MiB, 3.42% gc time, 66.53% compilation time: 98% of which was recompilation)

julia> @time using PyCall
  0.000159 seconds (151 allocations: 13.984 KiB)

Cheers,
Miles

@thautwarm
Copy link
Author

It gets resolved since 1.10, but still applicable for earlier versions.

@stevengj
Copy link
Member

Closing as a Julia issue that is now fixed.

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

No branches or pull requests

3 participants