[gambit-list] call-with-input-file memory use

Nicholas Walton nwalton at mac.com
Tue Sep 25 07:06:09 EDT 2007


Hi,

Is there any reason that reading a medium size file (10.9M) containing a fairly convoluted numeric list structure, previously written from Gambit, should take for ever using (call-with-input-file ...) and use an inordinate amount of memory.  Trying to load twenty of these files in sequence blows my VM to 3.5Gigabyte before my Mac bottles out.

If I change the datafile into a scm file by enclosing the data with (define x '.....) then the file loads immediately.

Nick Walton



More information about the Gambit-list mailing list