On exceptions in D
Benjamin Thaut
code at benjamin-thaut.de
Sun Feb 9 12:45:56 PST 2014
Am 09.02.2014 19:49, schrieb Adam D. Ruppe:
> On Sunday, 9 February 2014 at 18:26:59 UTC, Benjamin Thaut wrote:
>> The full stack trace is constructed lazy.
>
> On Windows yes (though StackWalk64 is slow too, I see you or someone
> else has already fixed that on git), but on Linux it constructed the
> full string in the constructor!
>
> I have a pull request pending some minor details to be worked out that
> will fix that. Gives a 20-80x improvement on thrown then caught
> exceptions without printing them.
Yes I fixed that for windows. When skimming through the linux source
code, I got the impression that lazy creation was implemented for linux
too? I must have misread that.
Also the latest windows version does use RtlCaptureStackBackTrace if
possible, which is a lot faster then StackWalk64.
More information about the Digitalmars-d
mailing list