servo / rust-smallvec

"Small vector" optimization for Rust: store up to a small number of items on the stack
Apache License 2.0
1.32k stars 141 forks source link

Annotate SmallVec::insert_from_slice with `#[inline]` #312

Closed sffc closed 1 year ago

sffc commented 1 year ago

This resolves the code size regression I observed in https://github.com/servo/rust-smallvec/pull/298#issuecomment-1683063333.

It reduces the ICU4X tiny wasm file test from 20472 B to 19168 B.

Thoughts?

CC @Manishearth @robertbastian