Find Count() comparison that could be optimized
ProprietaryDetect Count(pred) == n and Count() > n comparisons which could use Where().Take(n+1).Count() or Skip(n).Any() for better performance.
OpenRewrite. Recipes. CSharp. CodeQuality. Linq. FindOptimizeCountUsagemod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Linq. FindOptimizeCountUsageInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.