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>?
基础教程推荐
- 我应该在后面的代码中直接使用 Linq To SQL 还是使 2022-01-01
- 如果有人提交恶意软件Nuget包怎么办? 2022-01-01
- 如何使用 .Net 检查 Active Directory 服务器是否已启动并正在运行? 2022-01-01
- 当值可以是对象或空数组时反序列化 JSON 2022-01-01
- WPF 模态进度窗口 2022-01-01
- .NET SerialPort DataReceived 事件未触发 2022-01-01
- C# 从 List<List<int>> 中删除重 2022-01-01
- Moq It.Is<>不匹配 2022-01-01
- Azure Functions:CosmosDBTrigger 未在 Visual Studio 中触发 2022-01-01
- 禁止输入少量字符,例如'<'、'&a 2022-01-01
