diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-05-01 10:01:02 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2018-05-01 22:12:49 +1000 |
| commit | 94c5d38f0b5c85e2171dfe7b9ec36954d17f5fe0 (patch) | |
| tree | ddc4d00ad6599bca77e7b36e304749b71ae1e79f /src/test/incremental/thinlto | |
| parent | f76f6fbdea497c3cb536e33387f405cc74b99b76 (diff) | |
| download | rust-94c5d38f0b5c85e2171dfe7b9ec36954d17f5fe0.tar.gz rust-94c5d38f0b5c85e2171dfe7b9ec36954d17f5fe0.zip | |
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%.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
