Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(gateway): avoid recent latencies rotate (#2396)
[Rotate](https://github.com/rust-lang/rust/blob/37e74596c0b59e81b9ac58657f92297ef4ccb7ef/library/core/src/slice/rotate.rs) is a perhaps surprisingly expensive operation, when we really just want to move stuff one step to the right. Inspired from a similar optimization in #2395 (tagged as a refactor since this doesn't measurably impact performance).
- Loading branch information