Review HasFlag
calls in hot code paths
#13308
Labels
area/performance 📈
Categorizes an issue or PR as relevant to performance
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/enhancement
New feature or request
triage/untriaged
Indicates an issue requires triaging or verification
HasFlag
was optimized in .NET Core 2.1 to not box, but apparently, it's not guaranteed that this optimization will always work. See dotnet/runtime#55455 (comment)We should replace
HasFlag
calls (especially ones in hot code paths like pointers) with bitwise AND.The text was updated successfully, but these errors were encountered: