Details
-
Task
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
Description
throw statement prevents inlining. Review all throw statements:
- Internal sanity checks can be replaced with Debug.Assert
- When throw is still necessary, and the method is small (candidate for inlining) - move throw logic into a separate method.
https://devblogs.microsoft.com/dotnet/performance_improvements_in_net_7/#exceptions