Structs by ref in D2

bearophile bearophileHUGS at lycos.com
Fri Aug 21 07:49:02 PDT 2009


Daniel Keep:

>Vector code can be made much faster using ref arguments,<

You are right regarding DMD (that's what I was asking for), but LDC often is able to inline everything (if the method is short), so using ref leads to the same (high) performance.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list