lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Serebrennikov <>
Subject Re: Optimizing SegmentTermEnum (and friends)
Date Wed, 26 Feb 2003 00:11:49 GMT
Doug Cutting wrote:

> Dmitry Serebrennikov wrote:
>> 1) Since I do not need the intermediate terms, it makes sence to try 
>> to have a method that skips to the right term without creating the 
>> intermediate Term objects. I have done a version of this yesterday 
>> and ended up seeing a factor of 2 performance encrease and a factor 
>> of 2 garbage reduction. The patch adds the following method to 
>> final int compareTo(String otherField, char[] otherText, int start, 
>> int len)
>> And changes to delay creation of Term object 
>> until call to term().
>> Full diff is attached. Any comments are welcome, especially if I've 
>> missed something.
> Looks reasonable to me.  Does it still pass all of the unit tests? 

I typed ant test-unit and it said $ ant test-unit
Buildfile: build.xml
Total time: 4 seconds

Does that mean the tests passed? Kind of quick... I think it didn't 
really work but I can't tell why. Are there instructions?
What am I missing?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message