Fastest way of getting a long zero vector?

They have optimized implementations that branch on sizes, for example.
They’ll use noon-temporal stores when the memory is too big to fit in cache, for example.

It should in general be the fastest way to set memory (but calloc should still be better for 0).

4 Likes