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.
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.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<gcAllowVeryLargeObjects enabled="true" />
</runtime>
</configuration>
mono64 --config MyCustomApp.config Foobar.exe
If you are using appsettings.json you can use it like this:
"runtimeOptions": {
"gcAllowVeryLargeObjects": {
"enabled": true
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With