rust/compiler/rustc_mir_build/src
bors e599b53e67 Auto merge of #76918 - ishitatsuyuki:match-fastpath, r=oli-obk
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
2020-09-24 17:22:56 +00:00
..
build fix typo in docs and comments 2020-09-21 12:14:28 +09:00
thir Auto merge of #76918 - ishitatsuyuki:match-fastpath, r=oli-obk 2020-09-24 17:22:56 +00:00
lib.rs use array_windows instead of windows in the compiler 2020-09-20 08:11:05 +02:00
lints.rs Rollup merge of #76318 - scottmcm:one-control-flow, r=ecstatic-morse 2020-09-07 01:18:05 +02:00