Do we need faster regex?
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Mon Dec 18 09:43:34 UTC 2023
On 18/12/2023 10:20 PM, Anonymouse wrote:
> I really like regex as a thing, but I have had to drop it because of the
> increased compilation memory and time requirements that use of
> |std.regex| incurred. Maybe that can't be avoided, I don't know.
>
> I have not had that much use for backreferences, so to me the important
> part is that it doesn't require me to have 300+ Mb more RAM and an extra
> second or two on the wall clock to compile.
As long as you use std.regex at runtime this is no longer the case.
https://github.com/dlang/phobos/pull/8699
https://github.com/dlang/phobos/pull/8698
Looks like I messed up and not got it into the changelog.
Anyway 2.103 should be the release that have them in it.
More information about the Digitalmars-d
mailing list