Do we need faster regex?

H. S. Teoh hsteoh at qfbox.info
Tue Dec 19 00:04:40 UTC 2023


On Mon, Dec 18, 2023 at 06:34:51PM +0000, Dmitry Olshansky via Digitalmars-d wrote:
[...]
> A runtime cache should work, btw std.regex caches regexes (at least
> those passed as strings to match* family of functions).

Cool, didn't know that. :-)


[...]
> > - Get rid of ctRegex -- it adds a huge compile-time cost with
> >   questionable runtime benefit. Unless there's a way to do this at
> >   compile-time that *doesn't* add like 5 seconds per regex to
> >   compile times.
> 
> Yup it's dropped, to be eventually replaced by JIT which is both
> better at compile-time and much more flexible at run-time.
[...]

Awesome stuff!


T

-- 
A mathematician is a device for turning coffee into theorems. -- P. Erdos


More information about the Digitalmars-d mailing list