Closed ckcr4lyf closed 1 year ago
Redis performance is indifferent
However, the initial parsing into the [u8; 6]
is faster than Vec<u8>
:
IP str to bytes/vec time: [120.36 ns 123.52 ns 126.92 ns]
IP str to bytes/u8 time: [32.511 ns 32.607 ns 32.715 ns]
We know it's only 6 bytes, don't need vec