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

Memoize duplicate field checks in IDL-generated parsers

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Do
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Service Arch 2023-05-01, Service Arch 2023-05-15

    Description

      Parsers generated from IDL check the BSON document for duplicate fields. This check is performed more than once for the same BSON document when it's parsed by different parsers. After the first time this check is performed, we should skip subsequent checks.

      The work done in SERVER-75866 shows that even though this change might not yield any significant improvements in the ops_per_sec performance measurements for industry benchmarks, the change does reduce the time we spend inside the initializeAPIParameters function both on ARM and Intel.

      Attachments

        Activity

          People

            vojislav.stojkovic@mongodb.com Vojislav Stojkovic
            vojislav.stojkovic@mongodb.com Vojislav Stojkovic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: