May, 2012

  • May 8, 2012

    Code performance always matters, and copying data is a common operation. Simple array copy code uses a loop to copy one value at a time. ISO C provides the memcpy( ) and memmove( ) functions to do this efficiently, but are they faster, by how much, and under what conditions? This article benchmarks five common methods and four common compilers to find the fastest method to copy an array quickly.

Syndicate content
Nadeau software consulting
Nadeau software consulting