tags:

views:

58

answers:

2

hello, 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

A: 

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.

Michael Borgwardt
+2  A: 

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/

synhershko