Kairit Sirts wrote: > I try to process large data files and while doing that I get 'out of memory' > error message. I understand that I have to increase the memory limit by > setting 9!:20 or 9!:21, but I don't know how to do that. > > The attempts to execute 9!:20 y or 9!:21 y, where y is some desired number > bigger that default 2^30 will give me rank error. I also do not find any > examples of how to do that. > > How should I do that or where could I read about it?
Two problems here: 1. In an expression like 9!:21 1000000, the last two numbers are parsed as a single item, i.e. ;:'9!:21 1000000' +-+--+----------+ |9|!:|21 1000000| +-+--+----------+ So you need to separate the two numbers somehow. There are various ways to do so, e.g. 9!:21 [ 1000000 2. The default memory limit is already the highest value that should be set. If you are reading large data files that don't fit into memory, then either process the file in chunks, or memory map the file. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
