Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize
insert
for the case where index == len
.
By skipping the call to `copy` with a zero length. This makes it closer to `push`. This speeds up rustc (which uses `SmallVec` extensively) by 2% on one benchmark. Also clarify the panic condition.
- Loading branch information