Inherent code performance advantages of D over C?
Walter Bright
newshound2 at digitalmars.com
Mon Dec 9 11:10:09 PST 2013
On 12/9/2013 10:50 AM, H. S. Teoh wrote:
> Does this currently only happen inside a single expression? Any plans to
> have the optimizer recognize pure calls in separate (but identical)
> expressions? Jacob's example seems like it *should* be easily detected:
>
> int a = pureFunc(a,b,c);
> int b = pureFunc(a,b,c); // should elide this second call
Certainly more can be done, as with many other optimizations, but I haven't been
able to spend much time on it.
More information about the Digitalmars-d
mailing list