2 ms·
Which is why I measured with many different sizes. I know the fixed size version (the existing code), so I measured with 1 element, half the fixed sized versio
by bluGill 3y ago
Which is why I measured with many different sizes. I know the fixed size version (the existing code), so I measured with 1 element, half the fixed sized version, the fixed sized version, and double the fixed size version. All with different amounts of reserved data elements. The fixed size version is faster, but not by enough to care about - at least in my case where the vector is created at startup and never changed after.