xtim
Thursday, July 01, 2004
 
Running lucene 1.4 under jserv in Optit. Test search is for "field".

We're creating loads of objects:

Class name Instance count Difference
-------------------------------------------------------------------- -------------- ----------
char[] 423649 + 27735
java.lang.String 427058 + 26818
org.apache.lucene.index.Term 383291 + 21558
org.apache.lucene.index.TermInfo 381780 + 20217
org.apache.lucene.search.ScoreDoc 14828 + 14828
org.apache.lucene.search.BooleanScorer$Bucket 3072 + 3072
java.lang.StringBuffer 4006 + 2709
java.util.LinkedList$ListItr 1816 + 1816
java.util.LinkedList$Entry 1809 + 1775

It's opening the index twice: once for the search, once for highlighting. Will see if we can optimize that and reduce the object count somewhat.

T
Comments: Post a Comment

<< Home

Powered by Blogger