≈ the.bay.news

I Only Wanted Six Sums. GroupBy Gave Me 100 MB

DEV Community
I Only Wanted Six Sums. GroupBy Gave Me 100 MB
I used GroupBy().ToDictionary() to get six per-region totals and it allocated 100 MB. AggregateBy, the LINQ method that shipped in .NET 9, does the same job in one pass for about a kilobyte. Here are the measured numbers and the honest caveat.

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.