Explicitly freeing memory in c#

前端 未结 9 734
刺人心
刺人心 2020-12-01 01:12

I\'ve create a c# application which uses up 150mb of memory (private bytes), mainly due to a big dictionary:

Dictionary Txns = new Diction         


        
9条回答
  •  不知归路
    2020-12-01 01:51

    It's not usually a good idea trying to force the GC. Do you really need to have the whole dictionary in memory?

提交回复
热议问题