Performance experiment: Memoize duplicate-field check performed in IDL-generated parsers

XMLWordPrintableJSON

    • Type: Engineering Test
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch 2023-04-17, Service Arch 2023-05-01
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      As described in SERVER-75864, parsers generated from IDL perform a check to see if the BSON object they're parsing contains duplicate fields. This check is performed multiple times for the same BSON object by different parsers.

      The goal of this ticket is to do preliminary performance testing to check whether memoizing this validation so that it's performed no more than once for each BSON object would yield any performance improvements.

        1. image-2023-04-17-01-34-42-048.png
          47 kB
          Vojislav Stojkovic
        2. image-2023-04-17-01-40-37-460.png
          43 kB
          Vojislav Stojkovic
        3. SERVER-75866.csv
          12 kB
          Alex Li
        4. SERVER-75866-diff
          2 kB
          Alex Li

            Assignee:
            Alex Li
            Reporter:
            Vojislav Stojkovic
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: