Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-1538

Add cursor equality function

      There are use cases where a lot of cursor comparisons are made, for example when using cursors like STL iterators, eg:

      • Set cursor c2 to a location via a search (or the end via prev).
      • Start a walk with cursor c1
      • Each step forward with c1 compare to the position of c2 to see whether you have walked as far as you want.

      In the above use case all we need is a simple equality check rather than a memcmp type comparison.

      Additional information:
      > the only thing we care about is whether two cursors point to the exact same place, how hard would it be to provide a faster "equals" operation on WT cursors? Ideally it wouldn't need to actually look at the data and could just look at the positioning information.

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            alexander.gorrod@mongodb.com Alexander Gorrod
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: