History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: JRUBY-768
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Charles Oliver Nutter
Reporter: Charles Oliver Nutter
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JRuby

Lazily create invocation callbacks and methods to trim time off startup

Created: 03/Apr/07 06:57 PM   Updated: 06/May/07 09:49 PM
Component/s: Core Classes/Modules
Affects Version/s: JRuby 0.9.8
Fix Version/s: JRuby 1.0.0RC1

Time Tracking:
Not Specified


 Description  « Hide
Startup is too slow, largely because the invocation methods we generate have to be classloaded and verified. One proven way to reduce startup time is to lazily initialize those classes. In addition, this shows significant gains even for reflected code.

Add lazy initialization to the runtime, on by default (and we'll see if there's any problems with doing that). Provide a system property that can be set to false to disable lazy init (jruby.stubs.lazy=false).



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Charles Oliver Nutter - 18/Apr/07 03:17 AM
We'll do something for 1.0, but it's not clear exactly what. We have a few options, we know the positive and negatives, and we'll see what balances runtime performance and startup time best.

Charles Oliver Nutter - 05/May/07 06:24 PM
We decided to just add -Xverify:none to the startup scripts. This trims off a good second or more on most systems. If there's more to do, we can consider it in the future.

Charles Oliver Nutter - 06/May/07 09:49 PM
Closing for 1.0RC1