Returning large structs == bad

Jarrett Billingsley kb3ctd2 at yahoo.com
Fri Feb 15 06:07:24 PST 2008


"downs" <default_357-line at yahoo.de> wrote in message 
news:fp4593$1kko$1 at digitalmars.com...

> I rewrote my version for freestanding functions .. 9.5s :confused: Why do 
> struct members (which are inlined, I checked) take such a speed hit?

I think other people have come to this bizarre realization as well.  It 
really doesn't make any sense.

Have you compared the assembly of calling a struct member function and 
calling a free function? 





More information about the Digitalmars-d mailing list