about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-05-20 08:55:50 +0000
committerbors <bors@rust-lang.org>2018-05-20 08:55:50 +0000
commit4c26e2e3fba61f18caca8bd43c57e1f1d799f07b (patch)
treed6c8437e0fd5aff8c306a193338b1fd25f4ef140 /src/rustllvm/RustWrapper.cpp
parentccb5e973f7546cef6c389a5378cdfbf2fcb595f1 (diff)
parentad471452ba6fbbf91ad566dc4bdf1033a7281811 (diff)
downloadrust-4c26e2e3fba61f18caca8bd43c57e1f1d799f07b.tar.gz
rust-4c26e2e3fba61f18caca8bd43c57e1f1d799f07b.zip
Auto merge of #50855 - nnethercote:fewer-macro_parser-allocs, r=petrochenkov
Speed up the macro parser

These three commits reduce the number of allocations done by the macro parser, in some cases dramatically. For example, for a clean check builds of html5ever, the number of allocations is reduced by 40%.

Here are the rustc-benchmarks that are sped up by at least 1%.
```
html5ever-check
        avg: -6.6%      min: -10.3%     max: -4.1%
html5ever
        avg: -5.2%      min: -9.5%      max: -2.8%
html5ever-opt
        avg: -4.3%      min: -9.3%      max: -1.6%
crates.io-check
        avg: -1.8%      min: -2.9%      max: -0.6%
crates.io-opt
        avg: -1.0%      min: -2.2%      max: -0.1%
crates.io
        avg: -1.1%      min: -2.2%      max: -0.2%
```
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions