summaryrefslogtreecommitdiff
path: root/ext/intl/breakiterator/breakiterator_methods.cpp
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-11-14 22:23:24 +0100
committerAnatol Belski <ab@php.net>2018-11-14 22:23:24 +0100
commit2a062f3c020e8cc53e49fa823021f3e8ce591cfe (patch)
tree3e6e82daa229b7ac8b0c9273ad2cb163f17dcad9 /ext/intl/breakiterator/breakiterator_methods.cpp
parent9a2bd2f4530412f04dbb86becf9783eb5335be7a (diff)
downloadphp-git-2a062f3c020e8cc53e49fa823021f3e8ce591cfe.tar.gz
Rework magic data once more
The change reduces the input size on patterns using posix character classes. It is still better than reverting to the patterns from the older version, as the upstream data uses posix classes also in the later versions. The input reduction speeds up the pattern matching in some cases. This patch is functionally almost same as upstream, but might show some diff when the input is very long. While the magic data in the newer versions is functionally an improvement, with jit=0 it might show a performance regression. The slowdown is negligible in the normal usage and is still acceptable for the malicious input. If some functional regressions show up, this patch should be reverted and the tests timing should be adapted instead.
Diffstat (limited to 'ext/intl/breakiterator/breakiterator_methods.cpp')
0 files changed, 0 insertions, 0 deletions