hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nkeywal (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-4157) Possible performance improvement in Bytes.java
Date Tue, 02 Aug 2011 19:40:27 GMT
Possible performance improvement in Bytes.java

                 Key: HBASE-4157
                 URL: https://issues.apache.org/jira/browse/HBASE-4157
             Project: HBase
          Issue Type: Improvement
          Components: performance
    Affects Versions: 0.90.4
         Environment: all
            Reporter: nkeywal
            Priority: Minor

This is in line with the work already done on HBASE-4012.

It's possible to improve all functions like Bytes.toShort, Bytes.toInt... and Bytes.putShort,
putInt... by calling sun.misc.Unsafe functions. However, when using these functions the endianess
must be taken into account. Infortunatly, HBase uses big endian while x86 systems are little
endian. Hence a conversion is required. This convertion (Integer.reverseBytes) is optimized
on jdk1.7 and 1.6.u23 version (see jdk 6946040 & 2198024). So with 1.6.u23+, this improvement
could bring something around 5-10% on the whole system. Moreover, as for HBASE-4012, a compatibility
feature for non little endian cpus or jdk without sun.misc.unsafe will have to be kept.


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


View raw message