lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34930] - IndexWriter.maybeMergeSegments() takes lots of CPU resources
Date Tue, 24 May 2005 03:59:58 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=34930>.
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=34930


psmith@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #15043|0                           |1
        is obsolete|                            |




------- Additional Comments From psmith@apache.org  2005-05-24 05:59 -------
Created an attachment (id=15137)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=15137&action=view)
Patch that hopefully is what Doug means

Doug,

I could not resolve in my mind exactly what you meant in your example code
snippet, but here's a patch that I believe accomplishes the same thing.  It's
merely a renaming of the variable, and using the 'mergeSegement decrements'
concept that you mention which I think is a good idea.

This patch still doesn't speed up the actual detecting of what segments on the
stack to merge when it does go into that loop.	I need to re-baseline the
performance measurements with this patch to see where the CPU is now spending
most of it's time, as it it may now be somewhere else entirely.

NOTE: all current unit tests still pass with this patch.


-- 
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message