lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Serebrennikov <dmit...@earthlink.net>
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 
>> Term.java:
>> final int compareTo(String otherField, char[] otherText, int start, 
>> int len)
>> And changes SegmentTermEnum.java 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
init:
javacc_check:
compile:
demo:
test:
test-unit:
BUILD SUCCESSFUL
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?

Dmitry.



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


Mime
View raw message