The Vec::push_all method special-cases pushing a slice onto a vector, and historically has performed much better than using extend (depending on how LLVM optimizations are working out).
We need to offer a method with maximal performance somehow, but ideally this would come from extend, either through optimization or through impl specialization.
The
Vec::push_allmethod special-cases pushing a slice onto a vector, and historically has performed much better than usingextend(depending on how LLVM optimizations are working out).We need to offer a method with maximal performance somehow, but ideally this would come from
extend, either through optimization or through impl specialization.