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.