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


基础教程推荐
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01
- MS Visual Studio .NET 的替代品 2022-01-01
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30
- SSE 浮点算术是否可重现? 2022-01-01
- rabbitmq 的 REST API 2022-01-01
- 将 XML 转换为通用列表 2022-01-01
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01
- c# Math.Sqrt 实现 2022-01-01
- 如何激活MC67中的红灯 2022-01-01