avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AVRO-939) Java: optimize BinaryData#compareBytes() to use sun.misc.Unsafe when available
Date Thu, 20 Oct 2011 18:16:10 GMT
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
            Reporter: Doug Cutting


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

        

Mime
View raw message