[q-lang-users] Memory fun (was Re: Speeding up Q)
Brought to you by:
agraef
From: Tim H. <q...@st...> - 2008-03-31 19:53:20
|
Just had a thought, since we're talking fairly fundamental bits of Q... I'm in the middle of hacking up a script to work on potentially large bitmaps. In a normal run, my script is well-behaved, albeit slow, using about 23M RAM for a couple of minutes. That's OK. However, during a hacking phase when I'm introducing screwups by the minute, it feels the urge to spew huge strings as it represents lists of variously 65536 elements or even that many triples - and most noticeably hogs up to a gig RAM in the process. Am I right in thinking that the generation of error strings including object-dumps is non-lazy? It's a bit of a PITA trying to find the one or two list-elements on which it can't do some function or other in the middle of such a large list. Normal development process here is emacs and a mrxvt session or two in whcih I either run the script or occasionally q -d theblighter.q or rarely hack around in the interpreter. Is there any way to speed the process up a bit? Maybe set a few exceptions or something? ~Tim -- <http://spodzone.org.uk/> |