You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Joey Echeverria (Commented) (JIRA)" <ji...@apache.org> on 2012/01/30 21:35:13 UTC
[jira] [Commented] (AVRO-939) Java: optimize
BinaryData#compareBytes() to use sun.misc.Unsafe when available
[ https://issues.apache.org/jira/browse/AVRO-939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13196397#comment-13196397 ]
Joey Echeverria commented on AVRO-939:
--------------------------------------
The Google Code Search link doesn't work because it's been shutdown. Here's a (hopefully) permanent link to the compare() method:
http://code.google.com/p/guava-libraries/source/browse/guava/src/com/google/common/primitives/UnsignedBytes.java?r=5fe70b8509b2a14787d3823b5f928ef399a7afdc#274
> 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