diff options
| author | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-09-26 07:06:00 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2019-09-30 09:05:36 +1000 |
| commit | 5ca99b750e455e9b5e13e83d0d7886486231e48a (patch) | |
| tree | 3c35d77076843ddf122b4aa114573fbd02a1ec01 /src/test/debuginfo/enum-thinlto.rs | |
| parent | 6c2c29c43206d6e2f1091fa278d2792ea10e3659 (diff) | |
| download | rust-5ca99b750e455e9b5e13e83d0d7886486231e48a.tar.gz rust-5ca99b750e455e9b5e13e83d0d7886486231e48a.zip | |
Avoid `chain()` in `find_constraint_paths_between_regions()`.
This iterator can be hot, and chained iterators are slow. The second half of the chain is almost always empty, so this commit changes the code to avoid the chained iteration. This change reduces instruction counts for the `wg-grammar` benchmark by up to 1.5%.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions
