diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-01-09 15:16:19 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-01-09 15:16:19 +1100 |
| commit | 46fa818d3443d4a62cd97be086d4d7a416b2d03e (patch) | |
| tree | 676eb814d1208abb0b0fd463418f0f3e7a6f74b6 /src/rustllvm/RustWrapper.cpp | |
| parent | b92552d5578e4544006da0dd5e793a19c2149321 (diff) | |
| download | rust-46fa818d3443d4a62cd97be086d4d7a416b2d03e.tar.gz rust-46fa818d3443d4a62cd97be086d4d7a416b2d03e.zip | |
Change `String` to `&'static str` in `ParseResult::Failure`.
This avoids 770,000 allocations when compiling the `html5ever` benchmark, reducing instruction counts by up to 2%.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
