Return-Path: Delivered-To: apmail-incubator-buildr-commits-archive@locus.apache.org Received: (qmail 2235 invoked from network); 17 Oct 2008 19:32:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Oct 2008 19:32:15 -0000 Received: (qmail 62759 invoked by uid 500); 17 Oct 2008 19:32:16 -0000 Delivered-To: apmail-incubator-buildr-commits-archive@incubator.apache.org Received: (qmail 62732 invoked by uid 500); 17 Oct 2008 19:32:16 -0000 Mailing-List: contact buildr-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: buildr-dev@incubator.apache.org Delivered-To: mailing list buildr-commits@incubator.apache.org Received: (qmail 62723 invoked by uid 99); 17 Oct 2008 19:32:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2008 12:32:16 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Oct 2008 19:31:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3A05F234C232 for ; Fri, 17 Oct 2008 12:31:44 -0700 (PDT) Message-ID: <1697916035.1224271904233.JavaMail.jira@brutus> Date: Fri, 17 Oct 2008 12:31:44 -0700 (PDT) From: "Assaf Arkin (JIRA)" To: buildr-commits@incubator.apache.org Subject: [jira] Resolved: (BUILDR-155) Lazily load code and 3rd party libraries to improve startup time In-Reply-To: <1462587105.1222898564219.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/BUILDR-155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Assaf Arkin resolved BUILDR-155. -------------------------------- Resolution: Fixed Autoload changes merged into trunk/head. > Lazily load code and 3rd party libraries to improve startup time > ---------------------------------------------------------------- > > Key: BUILDR-155 > URL: https://issues.apache.org/jira/browse/BUILDR-155 > Project: Buildr > Issue Type: Improvement > Reporter: Assaf Arkin > Assignee: Assaf Arkin > Fix For: 1.3.4 > > Attachments: buildfile > > > 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 task). > 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: > http://github.com/assaf/buildr/tree/BUILDR-155 > git co git://github.com/assaf/buildr.git BUILDR-155 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.