diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-04-18 14:09:27 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-04-19 09:17:40 +1000 |
| commit | 9f145022ef9390e6cfb0b2416744a393d62d3350 (patch) | |
| tree | a3cbbcba4696d6ce2a22665e2b833f6ca043cdb8 /src/rustllvm/RustWrapper.cpp | |
| parent | 23561c6747b0916e852aaa2a5d04c0b0eeddc6de (diff) | |
| download | rust-9f145022ef9390e6cfb0b2416744a393d62d3350.tar.gz rust-9f145022ef9390e6cfb0b2416744a393d62d3350.zip | |
Avoid allocating when parsing \u{...} literals.
`char_lit` uses an allocation in order to ignore '_' chars in \u{...}
literals. This patch changes it to not do that by processing the chars
more directly.
This improves various rustc-perf benchmark measurements by up to 6%,
particularly regex, futures, clap, coercions, hyper, and encoding.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
