Enabling List<T> to store large amounts of elements #76
Replies: 1 comment 1 reply
-
|
For what it's worth, if you can set the capacity ahead of time, then list performs as well or better than
Of course, the list is still on the LOH whereas |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Enabling List to store large amounts of elements
List is one of the most versatile collection types in .NET. As it is meant for general-purpose use, it is not optimized for any specific use case. So, if we look closely enough, we will find scenarios where it falls short. One of these scenarios is when you have lots of data. This article will look at precisely this.
https://steven-giesel.com/blogPost/37b32c2a-245f-4cb9-9e32-73a1091b025b
Beta Was this translation helpful? Give feedback.
All reactions