DO NOT REPLY [Bug 29743] - modified selector has poor cachefile save performance

2004-06-25 Thread bugzilla
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

[EMAIL PROTECTED] changed:

   What|Removed |Added

 AssignedTo|[EMAIL PROTECTED]  |[EMAIL PROTECTED]

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



DO NOT REPLY [Bug 29743] - modified selector has poor cachefile save performance

2004-06-23 Thread bugzilla
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 [EMAIL PROTECTED]  2004-06-23 19:01 ---
Created an attachment (id=11931)
Modified select bugs 29742,29743 bugs fix, plus added support for 
ChecksumAlgorithm

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



DO NOT REPLY [Bug 29743] - modified selector has poor cachefile save performance

2004-06-23 Thread bugzilla
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 [EMAIL PROTECTED]  2004-06-23 19:02 ---
Created an attachment (id=11932)
ChecksumAlgorithm class for ModifiedSelector

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



DO NOT REPLY [Bug 29743] - modified selector has poor cachefile save performance

2004-06-23 Thread bugzilla
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 [EMAIL PROTECTED]  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]