]> git.lizzy.rs Git - rust.git/commit
Use `SmallVec` in `TokenStreamBuilder`.
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 28 Mar 2019 01:27:26 +0000 (12:27 +1100)
committerNicholas Nethercote <nnethercote@mozilla.com>
Thu, 28 Mar 2019 22:32:58 +0000 (09:32 +1100)
commit17a8aff20abdef46ae90801c85cc232e81443e1b
treefdc560f228255949dae032b2f28409dbdf991580
parent4c27fb19ba15a2e45485e601a79914c6280196b0
Use `SmallVec` in `TokenStreamBuilder`.

This reduces by 12% the number of allocations done for a "clean
incremental" of `webrender_api`, which reduces the instruction count by
about 0.5%.

It also reduces instruction counts by up to 1.4% across a range of
rustc-perf benchmark runs.
src/libsyntax/parse/attr.rs
src/libsyntax/tokenstream.rs