[Issue 13726] Build Phobos and Druntime with stack frames enabled (-gs)
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Nov 29 08:01:19 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13726
--- Comment #12 from Martin Nowak <code at dawg.eu> ---
(In reply to Vladimir Panteleev from comment #6)
> Martin, do you have a benchmark for which the performance difference is
> non-negligible?
It would affect any leaf function that is not inlined.
For example this would kill what Manu had in mind for std.simd, a module where
each function consists of a few SIMD instrustions.
> I've been building D from source code on my server for a while now, just to
> enable stack frames. They are invaluable for debugging, I use them for
> production all the time. I am confident that at the moment, D will benefit
> more from stack frames in Phobos/Druntime than 0.1% in performance.
It's 0.1% performance loss for you but maybe 1 or 2% for someone else.
There is so much we can do to improve stack traces, but enforcing stack frames
is a performance trade-off.
--
More information about the Digitalmars-d-bugs
mailing list