Skip to content
Discussion options

You must be logged in to vote

This is not a csharplang question. This is a perf question which will be affected by many factors (including basic things like what runtime/not you're using). The only way to answer this is to measure.

Note: in practice 'in' can absolutely make things slower as it may just be faster to copy something and use it directly versus going through a reference. But it will depend on many factors, and profiling it's the only way to answer.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@HopefulFrog
Comment options

@BreyerW
Comment options

@tannergooding
Comment options

@HopefulFrog
Comment options

Answer selected by HopefulFrog
Comment options

You must be logged in to vote
1 reply
@HopefulFrog
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants