Why is std.regex slow, well here is one reason!

Johan j at j.nl
Sat Feb 25 16:49:52 UTC 2023


On Saturday, 25 February 2023 at 13:55:00 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
> So there is a problem with time trace handling, it doesn't 
> escape Windows paths so you end up with an exception on \T 
> tather than \\T.

I don't quite understand what you mean.

> I've gone ahead and modified the tool, did some cleaning up, 
> added a second output file that allows for consumption in a 
> spreadsheet application, sorted by duration automatically.
>
> I'd love to see the time trace switch upstreamed into dmd.

https://github.com/dlang/dmd/pull/13965

> We can then distribute this tool for an out of the box 
> visualization experience that doesn't require a web browser. 
> And of course globals need work, not just Windows path escaping 
> ;)

I'll add the tool to LDC.

> It is an absolutely lovely tool that will ease a lot of peoples 
> concerns over debugging compile times. Gonna be worth a blog 
> article!

Thanks. Looking forward.
I don't remember adding CTFE times to the traces, so that sounds 
like a clear improvement point? Or was it still useful for you to 
tackle the issue of the OP?

> I'll put my version here also:

Thanks :)


More information about the Digitalmars-d mailing list