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
note for myself: Roslyn also emits copying of value type when invoking instance member over immutable variable ('foreach' variable, 'from' range variable, 'let' query clause, 'using' variable).
Member invocation on a readonly value type field causes a temporary copy of the field to be made before invocation.
From Mr Skeet:
http://msmvps.com/blogs/jon_skeet/archive/2014/07/16/micro-optimization-the-surprising-inefficiency-of-readonly-fields.aspx
The text was updated successfully, but these errors were encountered: