buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lacton (JIRA)" <>
Subject [jira] Commented: (BUILDR-155) Lazily load code and 3rd party libraries to improve startup time
Date Sun, 05 Oct 2008 20:57:44 GMT


lacton commented on BUILDR-155:

Ubuntu Hardy Heron, JRuby jruby 1.1.4, Java 1.5.0, Core Duo 2.0GHz

(trunk)$ time jruby -S _buildr -f empty 
real	0m7.579s
user	0m6.992s
sys	0m0.312s

(improved) $ time jruby -S _buildr -f empty 
real	0m7.380s
user	0m6.992s
sys	0m0.268s

Not much difference on my laptop.

> Lazily load code and 3rd party libraries to improve startup time
> ----------------------------------------------------------------
>                 Key: BUILDR-155
>                 URL:
>             Project: Buildr
>          Issue Type: Improvement
>            Reporter: Assaf Arkin
>             Fix For: 1.3.4
> Startup time is most noticeable on JRuby, but speedup could also help for Ruby.  We can
improve startup time by reducing the amount of code and 3rd party libraries we require by
default, some of which are seldom used (e.g. SFTP  is used during deployment, a not-so-common
> This issue is an attempt at "cheap" ways to improve startup time going into the next
release.  Cheap: easy to implement, easy to explain, don't render the code hard to maintain.
 Since we'll carry anything we learn here into future releases, we can close this issue on
the first release that employs these principles.
> The goal is to have a noticeable (> 1 sec) and significant (> 20%) improvement
in startup time.  The first cut measures close to 1 sec/9% improvement (OS X 10.5.5, JRuby
1.1.3, Java 1.5.0, Core Duo 1.8Ghz):
> (trunk) $ time jruby -S _buildr -f empty 
> real    0m7.625s
> user    0m6.730s
> sys     0m0.627s
> (improved) $ time jruby -S _buildr -f empty
> real    0m6.737s
> user    0m5.940s
> sys     0m0.546s
> This was done by using autoload for some libraries. Code available here:
> git co git:// BUILDR-155

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message