[ 
https://issues.apache.org/jira/browse/HBASE-21748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16766528#comment-16766528
 ] 

Andrew Purtell commented on HBASE-21748:
----------------------------------------

[~busbey] I accepted the patch into branch-1 anyway. Replacing size(), an O(N) 
operation on CLSM, with a counter, which is O(1), is going to be an 
improvement, and an analysis was already done on branch-2, although the 
difference on branch-2 was magnified by locks taken during size() which are not 
present in branch-1.

> Port HBASE-21738 (Remove all the CLSM#size operation in our memstore because 
> it's an quite time consuming.) to branch-1
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-21748
>                 URL: https://issues.apache.org/jira/browse/HBASE-21748
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Andrew Purtell
>            Assignee: Andrew Purtell
>            Priority: Major
>             Fix For: 1.5.0, 1.4.10, 1.3.4
>
>         Attachments: HBASE-21748-branch-1.patch, HBASE-21748-branch-1.patch
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to