compile-time-regular-expressions icon indicating copy to clipboard operation
compile-time-regular-expressions copied to clipboard

Select optimization: Transform select into set when possible

Open Andersama opened this issue 4 years ago • 2 comments
trafficstars

In testing, compiles faster and generates assembly similar to -O3 even with -Os.

Treats regexs similar to: (a|b|c) as ([abc])

Andersama avatar Dec 08 '20 03:12 Andersama

This is a transform probably best suited to the parser.

Andersama avatar Dec 10 '20 07:12 Andersama

Should've probably given an example for the difference: compiler explorer

Better example: compiler explorer

Andersama avatar Dec 27 '20 04:12 Andersama