Help with Template Code
Jarrett Billingsley
kb3ctd2 at yahoo.com
Sun Apr 1 08:43:58 PDT 2007
"Max Samukha" <samukha at voliacable.com> wrote in message
news:dopu039g3u5dtb0ubovm8c7ach304bdbb7 at 4ax.com...
> Note that the mixin ctor is slower then manually coded one because of
> the loop. To improve performance, you could skip the struct
> initialization:
That loop is unrolled at compile time since it's iterating over a tuple.
It'll be just as fast as writing the initialization out line-by-line. But
using =void is another nice optimization :)
More information about the Digitalmars-d-learn
mailing list