Add early exit in update obsolete check for short update chains

XMLWordPrintableJSON

    • Storage Engines
    • 1,699.782
    • SE Transactions - 2026-04-10
    • 3

      __wt_update_obsolete_check is 1.19% flat CPU on 95read/5update YCSB at 128 threads. It runs on every update, acquires a page spinlock, reads globals, walks the chain — all for nothing when the chain has only one prior entry. Fix: add upd->next->next == NULL to the early exit in __wt_update_serial.

            Assignee:
            Jawwad Asghar
            Reporter:
            Jawwad Asghar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: