Where to set lt;gcAllowVeryLargeObjectsgt;?(在哪里设置 lt;gcAllowVeryLargeObjectsgt;?)
问题描述
我正在开发一个关于排序列表的小程序.现在,我需要一个需要 2GB 以上 RAM 的阵列.在研究过程中,我找到了该属性,但我不知道在哪里设置它.我正在使用单声道.
I'm working on a little program on sorting lists. Now, I need an array that requires more than 2GB of RAM. During my research, I found the property, but I don't know where so set it. I'm using Mono.
推荐答案
对于非常大的 ArrayList 对象,您可以通过在运行时环境中将 gcAllowVeryLargeObjects 配置元素的 enabled 属性设置为 true,将 64 位系统上的最大容量增加到 20 亿个元素.
For very large ArrayList objects, you can increase the maximum capacity to 2 billion elements on a 64-bit system by setting the enabled attribute of the gcAllowVeryLargeObjects configuration element to true in the run-time environment.
MyCustomApp.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<gcAllowVeryLargeObjects enabled="true" />
</runtime>
</configuration>
用法:
mono64 --config MyCustomApp.config Foobar.exe
这篇关于在哪里设置 <gcAllowVeryLargeObjects>?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在哪里设置 <gcAllowVeryLargeObjects>?


- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- 输入按键事件处理程序 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01