mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
e599b53e67
Add fast path for match checking This adds a fast path that would reduce the complexity to linear on matches consisting of only variant patterns (i.e. enum matches). (Also see: #7462) Unfortunately, I was too lazy to add a similar fast path for constants (mostly for integer matches), ideally that could be added another day. TBH, I'm not confident with the performance claims due to the fact that enums tends to be small and FxHashMap could add a lot of overhead. r? `@Mark-Simulacrum` needs perf |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |