tag:blogger.com,1999:blog-8623074010562846957.post1033515476236598191..comments2023-09-01T03:38:08.236-04:00Comments on Changing Bits: 2X faster PhraseQuery with Lucene using C++ via JNIMichael McCandlesshttp://www.blogger.com/profile/04277432937861334672noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-8623074010562846957.post-37350046639208702402014-01-31T06:29:34.029-05:002014-01-31T06:29:34.029-05:00Thanks for sharing that link Itman.Thanks for sharing that link Itman.Michael McCandlesshttps://www.blogger.com/profile/04277432937861334672noreply@blogger.comtag:blogger.com,1999:blog-8623074010562846957.post-65817063317941702842014-01-29T05:16:23.745-05:002014-01-29T05:16:23.745-05:00This is not surprising. Even though Java's per...This is not surprising. Even though Java's performance is close to that of C++, it seems that there is still about a 1.5-2x difference<br />See, e.g.:<br />http://benchmarksgame.alioth.debian.org/u32/java.phpItmanhttps://www.blogger.com/profile/06504303746901639466noreply@blogger.comtag:blogger.com,1999:blog-8623074010562846957.post-14222337820775149132013-07-23T08:20:11.415-04:002013-07-23T08:20:11.415-04:00I suspect most of the gains are from specializing/...I suspect most of the gains are from specializing/hardwiring the code to a specific query, collector, etc., but I haven't done the obvious test (create the same specialized code in Java instead of C)...Michael McCandlesshttps://www.blogger.com/profile/04277432937861334672noreply@blogger.comtag:blogger.com,1999:blog-8623074010562846957.post-62529511980787286132013-07-22T21:56:40.397-04:002013-07-22T21:56:40.397-04:00Hey Mike, interesting
Out of interest, do you hav...Hey Mike, interesting<br /><br />Out of interest, do you have any theories about your why the Java code is so much slower? <br />Have you learnt anything about C++ versus Java optimization here? <br /><br />Cheers,<br />SimonSimon Reavelyhttps://www.blogger.com/profile/16529362044480027289noreply@blogger.com