Optimize JSON decoding using set intersection and lookup table

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Unknown
    • 4.7
    • Affects Version/s: None
    • Component/s: JSON, Performance
    • None
    • None
    • Python Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Split from PYTHON-1374:

      Use set intersection to quickly find the $ key (if any) for a BSON type in json_util.object_hook.

      We can optimize JSON decoding using set intersection and a lookup table for better json_util.loads() performance.

            Assignee:
            Shane Harvey
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: