When reading the Improving .NET Application Performance and Scalability I have bumped into this under "Improving Managed Code Performance/Garbage Collector Guidlines:
Avoid preallocating and chunking memory.
But the book never goes into explaining as to why preallocating is bad or what the Chunking really means in light of GC optimization.
Can someobody shed more light on the issue and explain to me why the 2 are bad and what do they really mean in terms of using GC with .net?