Efficient way to pass struct as parameter

Adam D. Ruppe destructionator at gmail.com
Tue Jan 2 22:49:20 UTC 2018


On Tuesday, 2 January 2018 at 22:17:14 UTC, Johan Engelen wrote:
> Pass the Vector3f by value.

This is very frequently the correct answer to these questions! 
Never assume ref is faster if speed matters - it may not be.


More information about the Digitalmars-d-learn mailing list