From: kennytm Date: Thu, 3 May 2018 08:11:31 +0000 (+0800) Subject: Rollup merge of #50365 - nnethercote:nearest_common_ancestor-two-vecs, r=nikomatsakis X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=fd4bf237834de7728d4a8a3af32393d27c934509;p=rust.git 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 --- fd4bf237834de7728d4a8a3af32393d27c934509