You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (Created) (JIRA)" <ji...@apache.org> on 2011/10/25 10:20:32 UTC

[jira] [Created] (DERBY-5478) Speed up creation of bin scripts

Speed up creation of bin scripts
--------------------------------

                 Key: DERBY-5478
                 URL: https://issues.apache.org/jira/browse/DERBY-5478
             Project: Derby
          Issue Type: Improvement
          Components: Build tools
    Affects Versions: 10.9.0.0
            Reporter: Knut Anders Hatlen
            Assignee: Knut Anders Hatlen
            Priority: Minor


The binscripts build target takes around 3 seconds in the environments I use for building Derby. It looks like most of the time is spent running the chmod Ant task on the generated scripts. There are six invocations of the chmod task, one for each script. The chmod task can operate on multiple files, so one invocation should be enough (and one invocation on six files seems to have about the same cost as one invocation on a single file).

A related problem is that the scripts are always regenerated in incremental builds, even when there's nothing to do, so the binscripts target accounts for a significant part of the time it takes to run an incremental build.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (DERBY-5478) Speed up creation of bin scripts

Posted by "Knut Anders Hatlen (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-5478:
--------------------------------------

    Attachment: d5478.diff

The attached patch factors out the chmod call so that it's only done once, and it also adds a little bit of logic to prevent that the scripts are rebuilt when they're already up to date.
                
> Speed up creation of bin scripts
> --------------------------------
>
>                 Key: DERBY-5478
>                 URL: https://issues.apache.org/jira/browse/DERBY-5478
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>         Attachments: d5478.diff
>
>
> The binscripts build target takes around 3 seconds in the environments I use for building Derby. It looks like most of the time is spent running the chmod Ant task on the generated scripts. There are six invocations of the chmod task, one for each script. The chmod task can operate on multiple files, so one invocation should be enough (and one invocation on six files seems to have about the same cost as one invocation on a single file).
> A related problem is that the scripts are always regenerated in incremental builds, even when there's nothing to do, so the binscripts target accounts for a significant part of the time it takes to run an incremental build.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (DERBY-5478) Speed up creation of bin scripts

Posted by "Knut Anders Hatlen (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen resolved DERBY-5478.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 10.9.0.0

Committed revision 1189065.
                
> Speed up creation of bin scripts
> --------------------------------
>
>                 Key: DERBY-5478
>                 URL: https://issues.apache.org/jira/browse/DERBY-5478
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.9.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>            Priority: Minor
>             Fix For: 10.9.0.0
>
>         Attachments: d5478.diff
>
>
> The binscripts build target takes around 3 seconds in the environments I use for building Derby. It looks like most of the time is spent running the chmod Ant task on the generated scripts. There are six invocations of the chmod task, one for each script. The chmod task can operate on multiple files, so one invocation should be enough (and one invocation on six files seems to have about the same cost as one invocation on a single file).
> A related problem is that the scripts are always regenerated in incremental builds, even when there's nothing to do, so the binscripts target accounts for a significant part of the time it takes to run an incremental build.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira