DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39119>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39119

           Summary: Property tasks cause slow performance
           Product: Ant
           Version: 1.6.5
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


During the configuration of a property task, an IntrospectionHelper is created.
Although these are cached by classname to ensure only one is created,
Project.addbuildListener is always called, resulting in the same
IntrospectionHelper being added many times. I was seeing thousands on the list
for a complex build, and this list gets iterated over *a lot*. A quick
experimental fix in addBuildListener halved our build time (don't add to list if
it's already present).

The methods involved
org.apache.tools.ant.Project#addBuildListener
org.apache.tools.ant.IntrospectionHelper#getHelper

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

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to