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] [Updated] (HBASE-14020) Unsafe based optimized write in ByteBufferOutputStream
Date Mon, 06 Jul 2015 05:08:04 GMT

     [ https://issues.apache.org/jira/browse/HBASE-14020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Anoop Sam John updated HBASE-14020:
    Attachment: benchmark.zip

JMH test for reference.  It is showing 9-10% improve. (Though I was expecting much more)

Javac warns increase is because of Unsafe use.

Will commit now. Thanks for the review Ted and Stack.

> Unsafe based optimized write in ByteBufferOutputStream
> ------------------------------------------------------
>                 Key: HBASE-14020
>                 URL: https://issues.apache.org/jira/browse/HBASE-14020
>             Project: HBase
>          Issue Type: Sub-task
>          Components: Scanners
>            Reporter: Anoop Sam John
>            Assignee: Anoop Sam John
>             Fix For: 2.0.0
>         Attachments: HBASE-14020.patch, HBASE-14020_v2.patch, HBASE-14020_v3.patch, benchmark.zip
> We use this class to build the cellblock at RPC layer. The write operation is doing puts
to java ByteBuffer which is having lot of overhead. Instead we can do Unsafe based copy to
buffer operation.

This message was sent by Atlassian JIRA

View raw message