Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
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
Attachments
Issue Links
- causes
-
HBASE-25571 Compilation error in branch-2 after HBASE-25364
-
- Resolved
-
- links to