ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29743] - modified selector has poor cachefile save performance
Date Wed, 23 Jun 2004 19:14:20 GMT
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=29743>.
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=29743

modified selector has poor cachefile save performance





------- Additional Comments From robert@windermere.com  2004-06-23 19:14 -------
[PATCH]
I have created a patch that addresses the poor cachefile save performance.  This
patch addresses this bug, as well as bug 29742.

The revised ModifiedSelector now implements the BuildListener interface.  Upon
configuration, it registers itself with the Project as a BuildListener.  The
ModifiedSelector is notified of finished BuildEvents, like taskFinished,
targetFinished and buildFinished.  Saving of the cachefile is now delayed until
the next finished BuildEvent occurs, most likely, a taskFinished call.

There is also a new attribute called "delayupdate".  It defaults to true to gain
the new performance increase of delaying the save of the cachefile.  Setting the
"delayupdate" attribute to false allows continual cachefile updates ( like the
current ModifiedSelector ).

I also ran a sample population of files to note the reduction in time to cache
the file changes:

sample: 6596 image files averaging 31K, total size of 204 MB
        the cache is empty, so all files are seen as revised,
        this is the most extreme case to show the largest performance gain

MD5 digest mode with continual update:  9 minutes, 8 seconds
MD5 digest mode with delayed update:    36 seconds
CRC checksum mode with continual update: 7 minutes, 36 seconds
CRC checksum mode with delayed update: 43 seconds

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message