[ https://issues.apache.org/jira/browse/AVRO-939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418894#comment-13418894 ]
Harsh J commented on AVRO-939: ------------------------------ Yeah I think Eli did run it on x64 JVM, so it should be fine. Besides, I thought Snow Leopard alone did that 32 vs 64 thing, and its gone away in Lion now? Am wrong? Here's mine, from a *nix box with env info added, for Eli's benefit: {code} [ByteCompare] readTests:true writeTests:true cycles=800 test name time M entries/sec M bytes/sec bytes/cycle ByteCompareCompute: 2271 ms 22.015 0.000 0 {code} bq. Linux <host> 2.6.32-220.13.1.el6.x86_64 #1 SMP Tue Apr 17 23:56:34 BST 2012 x86_64 x86_64 x86_64 GNU/Linux bq. Intel(R) Xeon(R) CPU L5630 @ 2.13GHz {quote} java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b04) Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode) {quote} > Java: optimize BinaryData#compareBytes() to use sun.misc.Unsafe when available > ------------------------------------------------------------------------------ > > Key: AVRO-939 > URL: https://issues.apache.org/jira/browse/AVRO-939 > Project: Avro > Issue Type: New Feature > Components: java > Affects Versions: 1.7.1 > Reporter: Doug Cutting > Attachments: AVRO-939-1.patch, AVRO-939-2.patch, AVRO-939-3.patch, > AVRO-939-4.patch, AVRO-939.patch > > > Google's Guava libraries include an optimized implementation of lexicographic > byte comparison based on sun.misc.Unsafe that's ~4x faster than the normal > Java implementation. > http://hiroshiyamauchi.blogspot.com/2010/08/fast-unsigned-byte-lexicographical.html > http://www.google.com/codesearch#UKMs0lhE9bg/trunk/src/com/google/common/primitives/UnsignedBytes.java&l=276 > We might similarly optimize BinaryData#compareBytes(). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira