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>?


基础教程推荐
- 首先创建代码,多对多,关联表中的附加字段 2022-01-01
- 从 VS 2017 .NET Core 项目的发布目录中排除文件 2022-01-01
- 在 VS2010 中的 Post Build 事件中将 bin 文件复制到物 2022-01-01
- 经典 Asp 中的 ResolveUrl/Url.Content 等效项 2022-01-01
- 将事件 TextChanged 分配给表单中的所有文本框 2022-01-01
- 错误“此流不支持搜索操作"在 C# 中 2022-01-01
- 如何动态获取文本框中datagridview列的总和 2022-01-01
- JSON.NET 中基于属性的类型解析 2022-01-01
- 是否可以在 asp classic 和 asp.net 之间共享会话状态 2022-01-01
- 全局 ASAX - 获取服务器名称 2022-01-01