F # Interactive memory leak
If I open 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.
The same if I prefix let x =
. It seems that links to the highest level continue to be held, however inaccessible they are. Is there a way to clean up these things without losing the convenience of data flow? Right now I'm just rebooting to clean up, but that's awkward.
+3
source to share
2 answers