On Saturday, 2 July 2016 at 21:23:57 UTC, Namespace wrote:
passing by value is only a good solution if your struct is really small.
It's not uncommon for optimizers to generate the same code either way regardless of what you write.
Adam D. Ruppe via Digitalmars-d-learn Sat, 02 Jul 2016 17:11:25 -0700
On Saturday, 2 July 2016 at 21:23:57 UTC, Namespace wrote:
passing by value is only a good solution if your struct is really small.
It's not uncommon for optimizers to generate the same code either way regardless of what you write.