You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #64673 - Mark-Simulacrum:opt-match-ck, r=<try>
Optimize match checking to avoid layout queries
In code with large, single-value match statements, we were previously
spending a lot of time running layout_of for the primitive types
(integers, chars) -- which is essentially useless. This optimizes the
code to avoid those query calls by directly obtaining the size for these
types, when possible.
We fallback to the (slower) previous code if that fails, so this is not
a behavior change.
r? @Centril who I believe knows this code enough, but if not feel free to re-assign
0 commit comments