[
https://issues.apache.org/jira/browse/HBASE-21750?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16748487#comment-16748487
]
Zheng Hu commented on HBASE-21750:
----------------------------------
Re-attached patch.v3, trigger hadoop QA again.
> Most of KeyValueUtil#length can be replaced by cell#getSerializedSize for
> better performance because the latter one has been optimized
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HBASE-21750
> URL: https://issues.apache.org/jira/browse/HBASE-21750
> Project: HBase
> Issue Type: Sub-task
> Reporter: Zheng Hu
> Assignee: Zheng Hu
> Priority: Major
> Fix For: 3.0.0, 2.2.0
>
> Attachments: HBASE-21750.v1.patch, HBASE-21750.v1.patch,
> HBASE-21750.v2.patch, HBASE-21750.v3.patch, HBASE-21750.v3.patch
>
>
> After HBASE-21657, Most subclass of Cell has a cached serialized size (Except
> those cells with tags), so I think most of the KeyValueUtil#length can be
> replaced by cell#getSerializedSize. Such as:
> - KeyValueUtil.length in StoreFlusher#performFlush;
> - KeyValueUtil.length in Compactor#performCompaction ;
> and so on..
> Will prepare a patch for this.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)