You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/02/12 13:56:22 UTC

DO NOT REPLY [Bug 48734] New: Attrib performance is very slow

https://issues.apache.org/bugzilla/show_bug.cgi?id=48734

           Summary: Attrib performance is very slow
           Product: Ant
           Version: 1.8.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optional Tasks
        AssignedTo: notifications@ant.apache.org
        ReportedBy: mica@epee.dk


We have a task that syncronizes some data in our J2EE web applications. During
this taks we use the attrib task to set/remove readonly.

The performance of this has slowed dramatically between Ant 1.7.0 and 1.8.0.
Each of our web-applications have about 10 tld-files. In Ant 1.7.0 the complete
target is finished in 1-2 seconds. In Ant 1.8.0 the attrib task alone takes
about 10 seconds to complete (and slightly less than 20 seconds for the whole
target).

Example target:

<target name="sync-webapp-tld">
    <attrib readonly="false">
        <fileset dir="${build.src}/WEB-INF">
            <include name="*.tld" />
        </fileset>
    </attrib>

    <echo message="Do something ..."/>

    <attrib readonly="true">
        <fileset dir="${build.src}/WEB-INF">
            <include name="*.tld" />
        </fileset>
    </attrib>
</target>

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 48734] Attrib performance is very slow

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48734

Dan Rabe <da...@oracle.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dan.rabe@oracle.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

DO NOT REPLY [Bug 48734] Attrib performance is very slow

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48734

J.C. Hamlin <jc...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #3 from J.C. Hamlin <jc...@gmail.com> 2012-02-23 20:23:01 UTC ---
Any chance a short-circuit could be added to the attrib command, if the only
attribute that is being set is readonly="true" instead of using an exec use
java.io.File#setReadOnly() and if it is readonly="false" then use
java.io.File#setWriteable()?

This should dramatically improve the performance over using an exec to the
system attribute command one per file.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 48734] Attrib performance is very slow

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48734

Ronan Mulvaney <rm...@curamsoftware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rmulvaney@curamsoftware.com

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 48734] Attrib performance is very slow

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48734

--- Comment #1 from Stefan Bodewig <bo...@apache.org> 2010-02-12 13:28:03 UTC ---
I can confirm there is a major slowdown when compared to Ant 1.7.1 and have
added a testcase with svn revision 909397 - running the testPerformance target
takes 0 seconds with Ant 1.7.1 and 11 with 1.8.0 on my Windows box.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 48734] Attrib performance is very slow

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48734

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |1.8.1

--- Comment #2 from Stefan Bodewig <bo...@apache.org> 2010-03-26 10:01:12 UTC ---
things should be slightly better with svn revision 927753 - now half a second
per file rather than one second.  Still it is slower than Ant 1.7.1 used to be
but it seems there is nothing we can do without sacrificing correctness.

This is a result of fixing bug 5003.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

[Bug 48734] Attrib performance is very slow

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48734

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #4 from Stefan Bodewig <bo...@apache.org> ---
with the fix to bug 54128 we are back at 0.2 seconds for testPerformance

*** This bug has been marked as a duplicate of bug 54128 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

DO NOT REPLY [Bug 48734] Attrib performance is very slow

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48734

J.C. Hamlin <jc...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jchamlin@gmail.com

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.