Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is CLucene is faster than java lucene?

Tags:

lucene

clucene

i am using java lucene and i am moving my code from java to c++ for some reason so i need to know about the performance of clucene can any one explain

like image 977
raaga Avatar asked Oct 04 '10 07:10

raaga


2 Answers

According to a benchmark posted on CLucene's SourceForge wiki, CLucene outperforms Java Lucene by a factor of 2 to 3 during indexing, but search performance is only about 10% better.

like image 187
Michael Borgwardt Avatar answered Oct 16 '22 14:10

Michael Borgwardt


The data Michael linked to is quite old and incomplete. The answer is yes mainly because C++ has no GC threads and memory allocations are made in C++ by hand. Even reference counting in C++ will be performed faster in C++ since its compiled to machine code, unlike Java which runs on a VM.

For more info see the free chapter on CLucene from Lucene In Action, available from http://www.code972.com/blog/2010/06/lucene-in-action-free-chapter-coupon-code/

like image 41
synhershko Avatar answered Oct 16 '22 14:10

synhershko