3 ms·
Since I often use a sliding window, I made a Rust implementation and was surprised with how performant the VecDeque implementation was. The MidVec was only fas
by jtrueb 2y ago
Since I often use a sliding window, I made a Rust implementation and was surprised with how performant the VecDeque implementation was.
The MidVec was only faster than VecDeque when doing batch inserts and removals with my implementation.
https://gist.github.com/trueb2/9c0a23aa012f56d4c3d50afe8acf6f6a https://gist.github.com/trueb2/9c0a23aa012f56d4c3d50afe8acf6...