Complex.c

BCS BCS_member at pathlink.com
Sun Apr 30 17:11:10 PDT 2006


Which is better inlined? Maybe it's an optimization issue.

In article <e33eoq$2v4p$1 at digitaldaemon.com>, Craig Black says...
>
[...]
>
>It doesn't matter whether you are on the stack or on the heap.  If you pass
>a data structure by value, then you are pushing and popping the entire
>contents of the data structure onto the stack every time you call the
>function.  I've run benchmarks and it is much better to pass by reference,
>especially for large data structures.
>
>-Craig
>
>





More information about the Digitalmars-d mailing list