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

Hudson commented on HBASE-14480:
--------------------------------

FAILURE: Integrated in HBase-TRUNK #6873 (See 
[https://builds.apache.org/job/HBase-TRUNK/6873/])
HBASE-14480 Small optimization in SingleByteBuff. (anoopsamjohn: rev 
b014ba12431dc87903cd5065b14908f6a4ad458d)
* hbase-common/src/main/java/org/apache/hadoop/hbase/util/UnsafeAccess.java
* hbase-common/src/test/java/org/apache/hadoop/hbase/nio/TestSingleByteBuff.java
* hbase-common/src/main/java/org/apache/hadoop/hbase/nio/SingleByteBuff.java


> Small optimization in SingleByteBuff
> ------------------------------------
>
>                 Key: HBASE-14480
>                 URL: https://issues.apache.org/jira/browse/HBASE-14480
>             Project: HBase
>          Issue Type: Sub-task
>          Components: regionserver, Scanners
>    Affects Versions: 2.0.0
>            Reporter: Anoop Sam John
>            Assignee: Anoop Sam John
>             Fix For: 2.0.0
>
>         Attachments: HBASE-14480.patch, HBASE-14480_V2.patch, 
> HBASE-14480_V2.patch
>
>
> We do read from this using Unsafe based reads on underlying BB.  The 
> UnsafeAccess getters having 2 branches of code for HBB and DBB and exact 
> memory offset calculation varies. We can do an optimize here.  We can 
> initialize the  reference object and exact memory offset for Unsafe reads 
> while creating the SBB.  We will do doing the reads on this SBB many a times. 
> Each time when we do read we can use
> Unsafe.getXXX(Object, long)
> I am able to get a slight adv of 2% on this change. Small change and worth 
> getting this slight gain.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to