aboutsummaryrefslogtreecommitdiff
path: root/defaults/versions
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-09-07 16:36:17 +0200
committernea <nea@nea.moe>2023-09-07 16:36:17 +0200
commit1f292d96a874628679288791966a7d66585e03a7 (patch)
tree26c81aab5e3fe797f60f6c92a61eacfe0366b3b5 /defaults/versions
parentad5ffa41a5e34c9baf897e9178e6d9b4bd6d3ed8 (diff)
downloadCITResewn-perf/jsonnbttest.tar.gz
CITResewn-perf/jsonnbttest.tar.bz2
CITResewn-perf/jsonnbttest.zip
Add check for a JSON element before attempting to match a stringperf/jsonnbttest
This has previously caused massive performance issues, especially in packs that frequently match non text elements. (see https://spark.lucko.me/R6fJJ3zXOJ and the massive amounts of the trace that is taken up by JsonSyntaxExceptions and MalformedJsonExceptions that trace back to this line) This patch first does a sanity check on the text element to see if it ever could be a JSON element.
Diffstat (limited to 'defaults/versions')
0 files changed, 0 insertions, 0 deletions