[ https://issues.apache.org/jira/browse/HBASE-12213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14623363#comment-14623363 ]
ramkrishna.s.vasudevan commented on HBASE-12213: ------------------------------------------------ JMH result to indicate the benefit we get for doing ByteBuffer.get(index) with and without Unsafe usage. {code} Benchmark Mode Cnt Score Error Units ByteBufferOperations.getFromDBB thrpt 5 553436792.275 ± 2439422.938 ops/s ByteBufferOperations.getFromHBB thrpt 5 350390020.038 ± 7289682.918 ops/s ByteBufferOperations.getUsingBbUtilsFromDBB thrpt 5 822765318.322 ± 31032738.527 ops/s ByteBufferOperations.getUsingBbUtilsFromHBB thrpt 5 551660820.090 ± 13224452.563 ops/s {code} > HFileBlock backed by Array of ByteBuffers > ----------------------------------------- > > Key: HBASE-12213 > URL: https://issues.apache.org/jira/browse/HBASE-12213 > Project: HBase > Issue Type: Sub-task > Components: regionserver, Scanners > Reporter: Anoop Sam John > Assignee: ramkrishna.s.vasudevan > Attachments: HBASE-12213_1.patch, HBASE-12213_10_withBBI.patch, > HBASE-12213_2.patch, HBASE-12213_4.patch, HBASE-12213_8_withBBI.patch, > HBASE-12213_9_withBBI.patch, HBASE-12213_jmh.zip > > > In L2 cache (offheap) an HFile block might have been cached into multiple > chunks of buffers. If HFileBlock need single BB, we will end up in recreation > of bigger BB and copying. Instead we can make HFileBlock to serve data from > an array of BBs. -- This message was sent by Atlassian JIRA (v6.3.4#6332)