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
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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With