List of Phobos functions that allocate memory?

Marco Leise Marco.Leise at gmx.de
Sat Feb 8 23:15:11 PST 2014


Am Sat, 08 Feb 2014 21:29:27 -0800
schrieb Walter Bright <newshound2 at digitalmars.com>:

> On 2/8/2014 2:59 PM, "Ola Fosheim Grøstad" 
> <ola.fosheim.grostad+dlang at gmail.com>" wrote:
> > On Saturday, 8 February 2014 at 22:03:13 UTC, Walter Bright wrote:
> >> You can make the lookup faster by compromising the function code generation,
> >> but this is considered an unacceptable tradeoff.
> >
> > "Compromising"? You mean they had to modify codegen, which they didn't want to.
> > Clearly, if you know the return address you also could have stack info access
> > close to it (at a fixed offset), at no runtime cost whatsoever.
> 
> Ola, I've done it both ways, I actually do know what I'm talking about.
> 
> I've sometimes been proven wrong here, so you're welcome to do a pull request 
> proving so.

It is not the function code gen that needs to be improved on
Linux, Walter. In fact that would be premature optimization
considering that the *construction* of exceptions outweights
unwinding costs for functions with no local variables by
multiple orders of magnitude.

-- 
Marco



More information about the Digitalmars-d mailing list