-
Notifications
You must be signed in to change notification settings - Fork 193
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
Improving startup time #186
Comments
Maybe it's just me, but I feel like this has gotten a lot worse lately, so I suspect that it's more to do with our code than JRuby itself. It might be a good idea to have a look with the profiler and see where the problem is. |
@headius updated the section about tiered-compilation just after i asked him about startup-time problems. -XX:+TieredCompilation -XX:TieredStopAtLevel=1 as flags to jruby reduced the time for require'ing gems by 50%, but didn't affect something else as far as i could see. My specific problem was exactly this: several seconds for startup just for some requires, and the tiered compilation flags reduced this and only this. /agree with davorb, profiling would be reasonable. hope this helps |
I tried some informal profiling of startup. It looks like almost all of our time is spent in require. The switches on the wiki page didn't seem to affect startup time for my jruby (I think they are enabled by default). However, when using edit: this change is in #187 |
The pull request @wasnotrice submitted above seems to cut it in half for me as well (platform is ubuntu as usual). |
The startup was roughly 30% faster with your changes. But it's still too Here are my results: However, I wouldn't put too much effort into optimizations before we've gotten one of the pre-releases out of the door.Davor Babic James Gifford wrote:
|
Absolutely. This is just some low-hanging fruit :) |
I like low hanging fruits :-) |
Okay merged, thanks! I'd be pro for keeping this issue open though since most likely, we can still make improvements! :-) |
Blech. Splashscreens. If we're going to design and implement a splash screen, we should seriously reconsider life. we should spend the time on making it faster, instead. Or am I just being a young idealistic fool? 😀 |
Hi everyone,
shoes4 is a bit slow too start which is mostly due to jRuby (at least, I figure so), the good old Charles Nutter just tweeted a link to an article in the jRuby wiki which is all about improving startup time. Maybe it's worth looking into.
The text was updated successfully, but these errors were encountered: