[jira] [Created] (IGNITE-6703) Unnecessary lookup in BPlusTree.ForwardCursor.fillFromBuffer for startIdx 0

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (IGNITE-6703) Unnecessary lookup in BPlusTree.ForwardCursor.fillFromBuffer for startIdx 0

Anton Vinogradov (Jira)
Semen Boikov created IGNITE-6703:
------------------------------------

             Summary: Unnecessary lookup in BPlusTree.ForwardCursor.fillFromBuffer for startIdx 0
                 Key: IGNITE-6703
                 URL: https://issues.apache.org/jira/browse/IGNITE-6703
             Project: Ignite
          Issue Type: Improvement
      Security Level: Public (Viewable by anyone)
            Reporter: Semen Boikov


fillFromBuffer calls findLowerBound if passed startIdx=0, BPlusTree.ForwardCursor.fillFromBuffer can be called in 2 cases:
1. When lower bound is not known
2. When lower bound is found in BPlusTree.Search. It seems in this case 0 is valid value for startIdx and findLowerBound is not needed in this case.

I it possible for example to change findLowerBound's contract and use -1 as 'unknown startIdx' value.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)