Optimisation, never easy.
The Hunt for the Fastest Zero
by Travis Downs
From the article:
Let’s say I ask you to fill a char array of size n with zeros. I don’t know why, exactly, but please play along for now.
If this were C, we would probably reach for memset, but let’s pretend we are trying to write idiomatic C++ instead...
Add a Comment
Comments are closed.