开发者

is CLucene is faster than java lucene?

开发者 https://www.devze.com 2023-01-18 10:13 出处:网络
i am using java lucene and i am moving my code from java to c++ for some reason so i need to kn开发者_如何学Goow about the performanceof clucene

i am using java lucene and i am moving my code from java to c++ for some reason so i need to kn开发者_如何学Goow 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/

0

精彩评论

暂无评论...
验证码 换一张
取 消