Closed nvzqz closed 6 years ago
Using a Vec is unnecessary because the storage is never resized. This sheds a quarter off of the container size (32 to 24 bytes on 64-bit).
Vec
I also changed vector creation from push loop to using vec!, which is much faster.
vec!
Looks good
Using a
Vec
is unnecessary because the storage is never resized. This sheds a quarter off of the container size (32 to 24 bytes on 64-bit).I also changed vector creation from push loop to using
vec!
, which is much faster.