about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2018-04-18 14:09:27 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2018-04-19 09:17:40 +1000
commit9f145022ef9390e6cfb0b2416744a393d62d3350 (patch)
treea3cbbcba4696d6ce2a22665e2b833f6ca043cdb8 /src/test/incremental/thinlto
parent23561c6747b0916e852aaa2a5d04c0b0eeddc6de (diff)
downloadrust-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/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions