I want to remove first N (0 <<< N < length) elements in Vec.
I've already found a solution here. The solution is to use Vec::drain
.
However, removing many elements using Vec::drain
is quite slow (190x slower than ptr::copy).
https://gist.github.com/Kogia-sima/167ec68c68829fe377be96f56af077a8
How can I "efficiently" remove first N elements in Vec without unsafe?