about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2018-05-04 16:53:31 +1000
committerNicholas Nethercote <nnethercote@mozilla.com>2018-05-09 09:17:03 +1000
commit65ea0ff29d32ca4fea30477f7fb1a1d43342dc26 (patch)
tree800609529fd3038e29f761cb260e0b12fb96ec41 /src/test/incremental/thinlto
parentf9bfe840f41d00e9712f13fbc635ec3fbe95e8c4 (diff)
downloadrust-65ea0ff29d32ca4fea30477f7fb1a1d43342dc26.tar.gz
rust-65ea0ff29d32ca4fea30477f7fb1a1d43342dc26.zip
Optimize string handling in lit_token().
In the common case, the string value in a string literal Token is the
same as the string value in a string literal LitKind. (The exception is
when escapes or \r are involved.) This patch takes advantage of that to
avoid calling str_lit() and re-interning the string in that case. This
speeds up incremental builds for a few of the rustc-benchmarks, the best
by 3%.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions