You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Lars Hofhansl (JIRA)" <ji...@apache.org> on 2013/11/09 08:52:17 UTC
[jira] [Created] (HBASE-9935) Slight perf improvement: Avoid
KeyValue at some places
Lars Hofhansl created HBASE-9935:
------------------------------------
Summary: Slight perf improvement: Avoid KeyValue at some places
Key: HBASE-9935
URL: https://issues.apache.org/jira/browse/HBASE-9935
Project: HBase
Issue Type: Bug
Reporter: Lars Hofhansl
Here's an example:
{code}
KeyValue.createLastOnRow(
kv.getBuffer(), kv.getRowOffset(), kv.getRowLength(),
kv.getBuffer(), kv.getFamilyOffset(), kv.getFamilyLength(),
kv.getBuffer(), kv.getQualifierOffset(), kv.getQualifierLength());
{code}
Looks harmless enough, but that actually recalculates the rowlength 5 times. And each time it needs to decode the rowlength again from the bytes of the KV.
--
This message was sent by Atlassian JIRA
(v6.1#6144)