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

Add cursor equality function

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: WT2.5.1
    • Component/s: None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                keith.bostic Keith Bostic
                Reporter:
                alexander.gorrod Alexander Gorrod
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: