Friday, January 30, 2004
Optimized the highlighter so it doesn't call String.replaceAll unless it knows it needs to:
Class name Instance count Difference
-------------------------------------------------------------------- -------------- ----------
java.util.LinkedList$Entry 19721 + 19576
java.lang.String 108322 + 18488
char[] 74642 + 15141
java.util.LinkedList$ListItr 13286 + 13286
java.util.LinkedList 5938 + 5935
java.lang.StringBuffer 5732 + 5704
com.xrefer.lucene.entitytokenizer.Token 4651 + 4651
Object[] 6462 + 4069
org.apache.lucene.analysis.Token 3322 + 3322
int[] 3763 + 3095
byte[] 2433 + 1800
java.nio.HeapCharBuffer 1138 + 1138
short[] 1842 + 1070
java.io.IOException 1049 + 1049
T