GeorryHuang opened a new pull request #2741:
URL: https://github.com/apache/hbase/pull/2741


   …he double comparison process
   
   
   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: 
   
   1. A comparison is performed before composing MinimumMidpointArray
   2. During composing of MinimumMidpointArray, bytes were comparing again
    
   My optimization  combines them into one
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to