compile-time-regular-expressions
compile-time-regular-expressions copied to clipboard
Select optimization: Transform select into set when possible
trafficstars
In testing, compiles faster and generates assembly similar to -O3 even with -Os.
Treats regexs similar to:
(a|b|c)
as
([abc])
This is a transform probably best suited to the parser.
Should've probably given an example for the difference: compiler explorer
Better example: compiler explorer