[ 
https://issues.apache.org/jira/browse/HBASE-4012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13057709#comment-13057709
 ] 

Eric Charles commented on HBASE-4012:
-------------------------------------

sun.msc.Unsafe is still in jdk7 
(http://hg.openjdk.java.net/jdk7/jdk7/jdk/file/tip/src/share/classes/sun/misc/Unsafe.java)
I tried to build hbase trunk with JDK build 1.7.0-ea-b143, and it's OK.

There's always a risk it will be renamed one day "oracle.msc.Unsafe"...
I also remember my surprise going from JDK1.4 to JDK1.5 and having a sun class 
related to encoding simply being removed, although I had been warned.

Are there any metric tests that give indication on performance gain?


> Further optimize byte comparison methods
> ----------------------------------------
>
>                 Key: HBASE-4012
>                 URL: https://issues.apache.org/jira/browse/HBASE-4012
>             Project: HBase
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 0.92.0
>            Reporter: Todd Lipcon
>            Assignee: Ted Yu
>            Priority: Minor
>              Labels: noob
>             Fix For: 0.92.0
>
>         Attachments: 4012-v2.txt, 4012.txt
>
>
> Guava uses some clever tricks with sun.misc.Unsafe to compare byte arrays 
> about 100% faster than the naive byte-by-byte implementation: 
> http://guava-libraries.googlecode.com/svn/trunk/guava/src/com/google/common/primitives/UnsignedBytes.java
> We should borrow this [Apache 2 licensed] code.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to