Re: std::copy versus pointer copy versus member copy
On Mon, 15 Sep 2003, tom_usenet wrote:
[color=blue]
> It depends on the compiler. Good candidates are std::copy,
> std::memcpy, memberwise loop, and, often the winner for poorer
> compilers, Duff's Device.
>
> In my tests, the results depend very much on the precise optimization
> settings. With loop unrolling, iCopy, mCopy and dCopy are generally
> better than cCopy (memcpy) and sCopy (std::copy). Without, dCopy is
> generally best, followed by the rest all about even.[/color]
Thanks! I did not yet test with the maximum optimizations ...
Regards,
Franky B.
On Mon, 15 Sep 2003, tom_usenet wrote:
[color=blue]
> It depends on the compiler. Good candidates are std::copy,
> std::memcpy, memberwise loop, and, often the winner for poorer
> compilers, Duff's Device.
>
> In my tests, the results depend very much on the precise optimization
> settings. With loop unrolling, iCopy, mCopy and dCopy are generally
> better than cCopy (memcpy) and sCopy (std::copy). Without, dCopy is
> generally best, followed by the rest all about even.[/color]
Thanks! I did not yet test with the maximum optimizations ...
Regards,
Franky B.
Comment