about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-02-09 12:38:51 +0000
committerbors <bors@rust-lang.org>2019-02-09 12:38:51 +0000
commitd329d46a3fcca61a1359c7c8f3b4ed0bccadd32e (patch)
treedbba5898b62c4c1abc6f95ea9fa390722e6422c7 /src/libsyntax/parse/parser.rs
parent618f5a08a13a90b65455cf8dc42e109e520b5dbf (diff)
parentf2871a9ce552cd21b1c7b8df69eefe06af6d59da (diff)
downloadrust-d329d46a3fcca61a1359c7c8f3b4ed0bccadd32e.tar.gz
rust-d329d46a3fcca61a1359c7c8f3b4ed0bccadd32e.zip
Auto merge of #58207 - nnethercote:intern_lazy_const, r=oli-obk
Make `intern_lazy_const` actually intern its argument.

Currently it just unconditionally allocates it in the arena.

For a "Clean Check" build of the the `packed-simd` benchmark, this
change reduces both the `max-rss` and `faults` counts by 59%; it
slightly (~3%) increases the instruction counts but the `wall-time` is
unchanged.

For the same builds of a few other benchmarks, `max-rss` and `faults`
drop by 1--5%, but instruction counts and `wall-time` changes are in the
noise.

Fixes #57432, fixes #57829.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions