[Coin-discuss] Performance of CoinMemcpyN()
Joseph Young
josyoun at nmt.edu
Fri Jul 29 16:03:14 EDT 2005
Hi,
By default, the function CoinMemcpyN() copies the elements from
one array to another using a for loop. Using memcpy() would most likely
make this operation much faster.
If COIN is compiled with the flag -DUSE_MEMCPY, then this function
will use memcpy() to copy the array. However, by default, this
flag is not set. There's also not a good place, that I can see, to add
this flag to the make process (although there's a number of places that it
could be put where it will work.)
Shouldn't the default behavior of this funtion use memcpy()? If
not, it would be nice to have this flag hilighted in the Makefiles so that
users know that they can turn it on.
Sinc, Joseph Young
More information about the Coin-discuss
mailing list