Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-40174

json_normalize / json_equals - unnecessary double parsing JSON document - performance

    XMLWordPrintable

Details

    Description

      json_normalize, the C function used by JSON_NORMALIZE and JSON_EQUALS, calls json_valid before processing. The processing reparses the same json document that json_valid already processed.

      Beginning of patch attached, just need to complete within json_normalize.c to ensure that the error handling is pristine.

      relevant tests:

      • main.json_normalize
      • main.json_equals

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.