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

Zhuoyue Huang updated HBASE-25364:
----------------------------------
    Description: 
There is a TODO like this "TODO: Redo so only a single pass over the arrays 
rather than one to  compare and then a second composing midpoint." in 
getMidpoint()  of class ​HFileWriteImpl​
  
 The old logic compares the left byte array and the right byte array twice: 
 # A comparison is performed before composing MinimumMidpointArray
 # During composing of MinimumMidpointArray, bytes were comparing again

 
 My optimization  combines them into one

  was:
There is a TODO like this "TODO: Redo so only a single pass over the arrays 
rather than one to  compare and then a second composing midpoint." in 
getMidpoint()  of class ​HFileWriteImpl​
 
The old logic compares the left byte array and the right byte array twice: # A 
comparison is performed before composing MinimumMidpointArray
 # During composing of MinimumMidpointArray, bytes were comparing again

 
My optimization  combines them into one


> Redo the getMidPoint() in HFileWriterImpl to get rid of the double comparison 
> process
> -------------------------------------------------------------------------------------
>
>                 Key: HBASE-25364
>                 URL: https://issues.apache.org/jira/browse/HBASE-25364
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Zhuoyue Huang
>            Assignee: Zhuoyue Huang
>            Priority: Minor
>
> There is a TODO like this "TODO: Redo so only a single pass over the arrays 
> rather than one to  compare and then a second composing midpoint." in 
> getMidpoint()  of class ​HFileWriteImpl​
>   
>  The old logic compares the left byte array and the right byte array twice: 
>  # A comparison is performed before composing MinimumMidpointArray
>  # During composing of MinimumMidpointArray, bytes were comparing again
>  
>  My optimization  combines them into one



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to