Files
serenity/Userland/Libraries/LibRegex/RegexOptimizer.cpp
Ali Mohammad Pur a306d33f17 LibRegex: Apply atomic loop rewrite in one more case
This commit makes LibRegex's atomic loop rewrite opt also accept cases
where the follow block jumps to the end of the forking block
(which is essentially a loop without a proper header in fancy clothes)

This makes patterns like /([^x]*)x/ where the loop is not _immediately_
followed by a block significantly faster.

(cherry picked from commit 1b127ac082a1b0175135752e8ca6578207798c43)
2024-11-25 12:19:48 -05:00

66 KiB