Skip to content
Prev 36538 / 63421 Next

suggestion how to use memcpy in duplicate.c

Herv? Pag?s wrote:
[...]
^^^^^^^^^^^^^^^^^
           //i += src_nblocks;

oops, take this out!

Of course copy_ints is twice slower now but is still
about 2.5x faster than copy_ints2 (the copyVector
way) for copying a length 3 vector recycled 3.3 million
times. For a length 1000 vector being recycled 25 times,
it's about 17x faster.

Cheers,
H.