about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-05-03 16:11:31 +0800
committerkennytm <kennytm@gmail.com>2018-05-04 02:12:48 +0800
commitfd4bf237834de7728d4a8a3af32393d27c934509 (patch)
tree25f22e9404e7c002d2d15ee7dccde8adcee4a676 /src/test/debuginfo/enum-thinlto.rs
parent06a47dc26ec742c3a899a76c182ef5c81ed9455f (diff)
parent94c5d38f0b5c85e2171dfe7b9ec36954d17f5fe0 (diff)
downloadrust-fd4bf237834de7728d4a8a3af32393d27c934509.tar.gz
rust-fd4bf237834de7728d4a8a3af32393d27c934509.zip
Rollup merge of #50365 - nnethercote:nearest_common_ancestor-two-vecs, r=nikomatsakis
Use two vectors in nearest_common_ancestor.

When looking at any scope in scope chain A, we only need to look for
matches among scopes previously seen in scope chain B, and vice versa.
This halves the number of "seen before?" comparisons, speeding up some
runs of style-servo, clap-rs, and syn by 1--2%.

Thanks to @kirillkh for the suggestion.

r? @nikomatsakis
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions