]> git.lizzy.rs Git - rust.git/commit
Use `SmallVec` to avoid allocations in `from_decimal_string`.
authorNicholas Nethercote <nnethercote@mozilla.com>
Fri, 9 Nov 2018 06:12:52 +0000 (17:12 +1100)
committerNicholas Nethercote <nnethercote@mozilla.com>
Fri, 9 Nov 2018 07:57:18 +0000 (18:57 +1100)
commita66d7b2001def5ab87e99d661e31890660f38374
tree51abfb18d76791ff32a9832544189bbb30e29d48
parent0117b42f66632f1f0fc08f1cdd8ca264c10bba94
Use `SmallVec` to avoid allocations in `from_decimal_string`.

This reduces the number of allocations in a "check clean" build of
`tuple-stress` by 14%, reducing instruction counts by 0.6%.
src/Cargo.lock
src/librustc_apfloat/Cargo.toml
src/librustc_apfloat/ieee.rs
src/librustc_apfloat/lib.rs