-
-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RCS1231 can cause perf implications and should probably be avoided in most scenarios when the struct is small #1499
Comments
This analyzer is not enabled by default. |
Correct. But is it even safe to enable? |
So you are suggesting to simply remove it completely. Ok, but generally it could be a problem because it's a breaking change. Some can then complain that it was removed. |
Thank you. Yes, I was proposing that it should be deprecated. I believe you have other deprecated rules already. Btw, I absolutely love what you have done with this library. Simply put: it is a work of art. Thank you |
Thank you very much! ❤️ |
I wouldn't enable this rule, at least not unless all the
readonly struct
s are massive. It seems like the intent is to avoid costs associated with copying of structs, but passing by reference then means that all accesses are indirections, which has its own costs.The text was updated successfully, but these errors were encountered: