mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 07:13:24 +03:00
2eb4fc800a
Iterate over the smaller list If there are two lists of different sizes, iterating over the smaller list and then looking up in the larger list is cheaper than vice versa, because lookups scale sublinearly.