.NET object size limit

后端 未结 3 1636
被撕碎了的回忆
被撕碎了的回忆 2020-12-03 19:10

It seems there is a 2 GB size limit for objects in .NET: How to run Fsi.exe in 64 Bits?

Is there a work around this? I would like to load a very large float array (10

3条回答
  •  鱼传尺愫
    2020-12-03 19:14

    In versions of .NET prior to 4.5, the maximum object size is 2GB. From 4.5 onwards you can allocate larger objects if gcAllowVeryLargeObjects is enabled. Note that the limit for string is not affected, but "arrays" should cover "lists" too, since lists are backed by arrays.

提交回复
热议问题