If I open up fsi and paste the following:
[1..10000000];;
[1..10000000];;
[1..10000000];;
[1..10000000];;
[1..10000000];;
[1..10000000];;
[1..10000000];;
[1..10000000];;
[1..10000000];;
I get:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
Same thing if I prefix with let x =. It seems that top level references continue to be held, no matter how inaccessible they may be. Is there any way to clean these things up, without losing the convenience of being able to step through your data? Right now I'm simply restarting to clean up, but it's inconvenient.
I don't think that there is a way to clean top level references in FSI. You can increase amount of memory that FSI can address using 64-but mode for F# Interactive process. In VisualStudio it is "Tools-Options-F# Tools->F# Interactive" settings
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