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

Load time latency #48

Open
musm opened this issue Oct 29, 2018 · 4 comments
Open

Load time latency #48

musm opened this issue Oct 29, 2018 · 4 comments

Comments

@musm
Copy link
Contributor

musm commented Oct 29, 2018

I am not sure if there is anything to be done here

The following are my julia load times when I add Revise and Rebugger to my startup.jl file

Is there any possibility to improve load time latency ? Starting julia takes a long time with the super useful Revise and Rebugger packages added to the startup file.

> time {julia -E "2"}          # rebugger and revise
2


Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 3
Milliseconds      : 399
Ticks             : 33998218
TotalDays         : 3.93497893518519E-05
TotalHours        : 0.000944394944444444
TotalMinutes      : 0.0566636966666667
TotalSeconds      : 3.3998218
TotalMilliseconds : 3399.8218
Mus ~
> time {julia -E "2"}  # revise only
2


Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 2
Milliseconds      : 564
Ticks             : 25640815
TotalDays         : 2.9676869212963E-05
TotalHours        : 0.000712244861111111
TotalMinutes      : 0.0427346916666667
TotalSeconds      : 2.5640815
TotalMilliseconds : 2564.0815
Mus ~
> time {julia -E "2"}  # no rebugger and no revise
2


Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 0
Milliseconds      : 522
Ticks             : 5220654
TotalDays         : 6.04242361111111E-06
TotalHours        : 0.000145018166666667
TotalMinutes      : 0.00870109
TotalSeconds      : 0.5220654
TotalMilliseconds : 522.0654
@timholy
Copy link
Owner

timholy commented Oct 30, 2018

I worked extensively to reduce the load time in Revise (timholy/Revise.jl#185, not a big PR but it took me more time than it should have to do the analysis and figure out what worked and what didn't). But I haven't investigated Rebugger. So there may be hope to reduce it somewhat. And of course Revise might be amenable to further improvement.

@timholy
Copy link
Owner

timholy commented Nov 29, 2018

I'm looking for help here, by the way. It's not terribly hard with SnoopCompile, but it is tedious.

@timholy
Copy link
Owner

timholy commented Jan 2, 2019

I may have made some strides here, care to try again? (JuliaLang/METADATA.jl#20303 is still pending as of this writing, and you need Revise 1.0.)

@musm
Copy link
Contributor Author

musm commented Jan 3, 2019

Thanks, startup time is improved. It seems that most of the latency has been transferred and now it takes longer for the prompt/repl to show up/initialize, which is better than the previous behavior.

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

2 participants