c# - List<> Better to init with a maximum capacity and only use a fraction of that, or init with no capacity -
I have list
If it can be really different that broadly, then you do not want to set the capability For most collections, the more the capacity is, the same (as I believe is the default capacity of 16), so your ability comes to you very close to meet your maximum limit.
Comments
Post a Comment