Do we need faster regex?
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Mon Dec 18 18:16:31 UTC 2023
The tables are stored compressed.
We do that because otherwise the binary size of Phobos would grow by
multiple megabytes (think 10, not 1).
This is why when you trigger usage of regex at CT it slows down a whole
lot. One of my optimizations was to prevent this unless it was needed.
However there are a lot of templates in use in each of the tables, and
these could all be swapped out for something else and I think that might
shave off something close to 100ms.
The tradeoffs for the tables are good ones, but it does bite us a bit here.
More information about the Digitalmars-d
mailing list