Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-90215

Remove extraneous invariants from future_impl.h

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Execution Team 2025-02-17

      In the server code, we generally don't add invariants to defend against null pointer exceptions before dereferences, as there is little benefit over having a segmentation violation.

      In the spirit of all bits help, I found that removing these few invariants remove about 1% of time for ServiceEntryPointCommonBenchmarkFixture/BM_SEP_PING.

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: