.NET generation 0 heap size

后端 未结 7 1931
礼貌的吻别
礼貌的吻别 2021-01-01 21:21

Is it possible to set a minimal size of a generation 0 heap in .NET?

I have a folowing sistuation. I have a function that allocates around 20-30 MB of 1KB objects, d

7条回答
  •  一个人的身影
    2021-01-01 21:25

    The Generation 0 heap is initially sized to your CPU's cache. This is so that small temporary objects don't even need to be moved to main memory.

提交回复
热议问题