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

Inline strcmp calls in the standard cursor functions

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.3.0
    • Component/s: None
    • Labels:

      Description

      @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

        Attachments

          Activity

            People

            • Assignee:
              keith.bostic Keith Bostic
              Reporter:
              keith.bostic Keith Bostic
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: