2 ms·
> This isn't being clever, it's actually incorrect to allocate a whole other vector. Realtime code requires O(1) memory complexity for correctness. You can jus
by saagarjha 1y ago
> This isn't being clever, it's actually incorrect to allocate a whole other vector. Realtime code requires O(1) memory complexity for correctness.
You can just allocate the scratch buffer beforehand.
- duped 1y agoLiterally said that in my comment