hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anoop Sam John (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-14480) Small optimization in SingleByteBuff
Date Thu, 24 Sep 2015 09:55:53 GMT
Anoop Sam John created HBASE-14480:

             Summary: Small optimization in SingleByteBuff
                 Key: HBASE-14480
                 URL: https://issues.apache.org/jira/browse/HBASE-14480
             Project: HBase
          Issue Type: Sub-task
    Affects Versions: 2.0.0
            Reporter: Anoop Sam John
            Assignee: Anoop Sam John
             Fix For: 2.0.0

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

This message was sent by Atlassian JIRA

View raw message