.NET object creation and generations

Posted by nimoraca on Stack Overflow See other posts from Stack Overflow or by nimoraca
Published on 2010-04-19T08:51:20Z Indexed on 2010/04/19 8:53 UTC
Read the original article Hit count: 186

Is there a way to tell the .NET to allocate a new object in generation 2 heap. I have a problem where I need to allocate approximately 200 MB of objects, do something with them, and throw them away. What happens here is that all the data gets copied two times (from gen0 to gen1 and then from gen1 to gen2).

© Stack Overflow or respective owner

Related posts about .NET

Related posts about garbage