H
Hannes
Hi guys!
I use a generic list which, once filled, will not change. It contains a
few 100'000 entries, so I'd like to limit its memory consumption. If I
set its capacity to its count after filling it, does the extra unused
memory (due to its probably high capacity by this time) get freed up do
I have to copy it into a new list where I set the capacity before
filling?
It is not possible to know how many entries it will contain before
filling starts.
Thanks in advance for any answers!
BTW: Is there a good online resource for C# out there? VisualStudio's
helpfile is really lousy...
Cheerio,
Hannes
I use a generic list which, once filled, will not change. It contains a
few 100'000 entries, so I'd like to limit its memory consumption. If I
set its capacity to its count after filling it, does the extra unused
memory (due to its probably high capacity by this time) get freed up do
I have to copy it into a new list where I set the capacity before
filling?
It is not possible to know how many entries it will contain before
filling starts.
Thanks in advance for any answers!
BTW: Is there a good online resource for C# out there? VisualStudio's
helpfile is really lousy...
Cheerio,
Hannes