3d vector struct
Stanislav Blinov
stanislav.blinov at gmail.com
Fri Feb 7 02:50:48 PST 2014
On Friday, 7 February 2014 at 04:03:58 UTC, Marco Leise wrote:
> Am Mon, 03 Feb 2014 22:01:14 +0000
> schrieb "Stanislav Blinov" <stanislav.blinov at gmail.com>:
>
>> Return-by-value being optimized as a move might be one more
>> reason why you would like to use slices...
> 3 doubles is only one machine word more than an array slice
> and there are no indirections, allocations and length
> attribute to deal with (which is always 3 here).
I know. I also know that people making games are obsessed with
performance :)
And, where there's 3d vector, there would also be 4d vector and
matrices...
More information about the Digitalmars-d-learn
mailing list