-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
RCS1077 - FirstOrDefault() is faster than Find() with .NET 9 #1531
Labels
Comments
Interesting. Maybe it makes sense to remove this suggestion. |
Would it make sense to actively suggest the reverse on .NET9 and above? |
@symbiogenesis Please create a new issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With .NET 8 and below, the recommendation to use Find() is correct.
But with .NET 9 or later, LINQ is actually faster.
https://www.youtube.com/watch?v=UfjRoshu23w&t=575s
The text was updated successfully, but these errors were encountered: