xtim
Friday, January 30, 2004
 
Tweaked HighlightEngine a little to do lazy instantiation of some Lists which might not always be needed.
Also got it to recycle lists where possible.

New counts:

Class name Instance count Difference
-------------------------------------------------------------------- -------------- ----------
char[] 80302 + 20801
java.lang.String 109588 + 19754
java.util.LinkedList$Entry 19721 + 19576
java.util.LinkedList$ListItr 13286 + 13286
int[] 8827 + 8159
java.lang.StringBuffer 6998 + 6970
java.util.LinkedList 5938 + 5935
Object[] 7728 + 5335
com.xrefer.lucene.entitytokenizer.Token 4651 + 4651
org.apache.lucene.analysis.Token 3322 + 3322
byte[] 2431 + 1800
java.util.regex.Pattern$Slice 1338 + 1338
java.util.regex.Pattern 1337 + 1337
java.util.regex.Matcher 1337 + 1337
java.util.regex.Pattern$BnM 1335 + 1335
java.nio.HeapCharBuffer 1138 + 1138
short[] 1838 + 1070
java.io.IOException 1049 + 1049

T
Comments: Post a Comment

<< Home

Powered by Blogger