See #1747 for detailed benchmarks.
The obvious solution seems to be to simply switch to tinyvec which:
- doesn't exhibit the same issues
- doesn't have any unsafe code
- has more features
The only downside is the Default requirement: for those cases where Default is not an option, a vanilla Vec seems like the best bet.
See #1747 for detailed benchmarks.
The obvious solution seems to be to simply switch to
tinyvecwhich:The only downside is the
Defaultrequirement: for those cases whereDefaultis not an option, a vanillaVecseems like the best bet.