阅读背景:

在.NET的内存使用方面,使用Stack 比List 更好

来源:互联网 

So in a .NET app , i got about 2 million items that i need to hold them in memory for processing , 1 by 1, would holding these items in a Stack collection , is better than holding them in a List collection, assuming that the memory used by the stack object will be keep minimizing every time an item is poped out of the stack object , or the memory allocated by the stack will keep the same till the stack is set to null, or cleared.So in a .NET app , i got about 2 million items




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: