Fastest way of getting a long zero vector?

You could use calloc. See e.g. Faster zeros with calloc and ArrayAllocators.jl

3 Likes