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

Inline strcmp calls in the standard cursor functions

    • Type: Icon: Task Task
    • Resolution: Done
    • WT2.3.0
    • Affects Version/s: None
    • Component/s: None

      @michaelcahill, I noticed zoom was complaining that strcmp in get/set key was taking up a big chunk of time, and it turns out that clang isn't inlining the calls. Here's a rework of that, ready to merge if you agree.

      There are some minor cleanups along the way:

      • always set fmt at the start of the function, based on WT_CURSOR_RAW_OK
      • always check S first, then u, then r

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

              Created:
              Updated:
              Resolved: