Lucene2.3性能提升
最近Lucene2.3发布,最大的变化是使用了新的索引算法,使用新的in-memory模型来大幅提升速度。中提到最简单的把lucene2.2的jar文件换成lucene2.3的jar文件就可以在某些测试中提速500%。Lucene2.3的changlog见http://svn.apache.org/repos/asf/lucene/java/tags/lucene_2_3_0/CHANGES.txt
我认为最主要的几个变化是:
- 对象池。可以复用Document、Field和Token的实例。写道LUCENE-969: Add new APIs to Token, TokenStream and Analyzer to
permitre-usingofTokenandTokenStreaminstancesduring
indexing.ChangedTokentouseachar[]asthestoreforthe
termTextinsteadofString.Thisgivesfastertokenization
performance (~10-15%). (Mike McCandless) - Re-open indexreader。reopen()操作只会加载变化的索引片段。写道LUCENE-743: Add IndexReader.reopen() method that re-opens an
existingIndexReaderbyonlyloadingthoseportionsofanindex
thathavechangedsincethereaderwas(re)opened.reopen()can
besignificantlyfasterthanopen(),dependingontheamountof
indexchanges.SegmentReader,MultiSegmentReader,MultiReader,
and ParallelReader implement reopen(). (Michael Busch)
其他的变化还在发掘中。
相关推荐
renjinlong 2020-09-03
Jacry 2020-07-04
IceStreamLab 2020-06-26
mengyue 2020-06-09
PasserbyX 2020-05-16
mameng 2020-05-12
心丨悦 2020-05-06
编码之路 2020-05-03
mengyue 2020-05-02
qiuzhuoxian 2020-02-23
编码之路 2020-02-20
lionelf 2020-02-03
TyCoding 2020-02-01
heniancheng 2020-01-31
某某某 2020-01-30
PinkBean 2020-01-29
某某某 2020-01-12
编码之路 2020-01-01
itmale 2020-01-01