Do we need faster regex?

Dmitry Olshansky dmitry.olsh at gmail.com
Wed Dec 20 16:14:11 UTC 2023


On Monday, 18 December 2023 at 18:09:16 UTC, H. S. Teoh wrote:
> On Tue, Dec 19, 2023 at 06:47:00AM +1300, Richard (Rikki) 
> Andrew Cattermole via Digitalmars-d wrote:
>> Yeah basically std.regex is no longer the cause for importing 
>> std.regex slowdown.
>> 
>> Its stuff like std.conv and std.uni.
>
> I haven't noticed too much horrible slowdown from std.conv, but 
> std.uni could use some fixing. I'm tempted to suggest that 
> those internal tables in std.uni should be pre-generated rather 
> than done at compile-time.

Far as I know there is not CTFE involved with the tables, but 
they are kind of huge. Perhaps doing .di files and enforce 
separate compilation may work here.


> There comes a point where repeatedly doing something at every 
> compile just isn't worth it when the desired output could be 
> autogenerated beforehand and saved as a straight .d file with 
> hard-coded values.
>
Which they are.

—
Dmitry Olshansky
CEO @ Glowlabs
https://olshansky.me





More information about the Digitalmars-d mailing list