running out of memory

Jan 27, 2013 at 11:31pm

running out of memory

Hi,

Is it possible to increase the memory allocated for javascript ?
I get this “out of memory” error whenever I am trying to load a big (1Mo) text file into a javascript string.

Or should I switch to another programming language ?

#66247
Jan 27, 2013 at 11:56pm

No – user-allocation of memory to one process or another (let alone a programming lang?) is not a feature of modern OSes, thank $deity.

#238446
Jan 28, 2013 at 2:54pm

You would probably be better off to handle your text file as an array of Strings, allocating one line of text to each string. Or reading in a couple of kB at a time.

#238447

You must be logged in to reply to this topic.