lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernhard Messer <Bernhard.Mes...@intrafind.de>
Subject optimize TermVectorsReader, remove synchronization from code
Date Sun, 15 Aug 2004 14:47:15 GMT
hi all,

as promised last week, i would like to contribute a patch which allows  
to remove all synchronization from TermVectorsReader class. This patch 
dramatically improves  the overall performance using one IndexReader 
within several threads. To show the difference, there is a new JUnit 
test which shows the difference.

calculated time without patch:
threadcount: 1 average term vector time: 385
threadcount: 2 average term vector time: 1013
threadcount: 4 average term vector time: 2879
threadcount: 6 average term vector time: 11311
threadcount: 8 average term vector time: 29323
threadcount: 10 average term vector time: 35797

time result using the patch:
threadcount: 1 average term vector time: 379
threadcount: 2 average term vector time: 736
threadcount: 4 average term vector time: 877
threadcount: 6 average term vector time: 947
threadcount: 8 average term vector time: 2407
threadcount: 10 average term vector time: 2648

If lucene developers think this patch is useful and might has a chance 
to become committed, i can create a new Bugzilla issue and add the files 
there.

best regards
Bernhard



Mime
View raw message