2007-06-26-0239Z


This afternoon I fixed mandelgen.py to generate all values as needed, on the fly, so as to minimize the memory requirements. The last bugaboo was where I had:

  for index in range(current['height'] * current['width']):

While I knew that range generated a list, somehow I thought it did so in a memory-efficient manner. It doesn't. Switching to a while loop eliminated that last byte-guzzler and I can now run the program on my Tektonic server, which has no swap space and I haven't yet figured out the Debian way of using a swapfile. Debian is great for ease of upgrades, but damn, they do make some things a lot more complicated than other GNU/Linux systems I'm familiar with.

Back to blog or home page

last updated 2013-01-10 20:54:54. served from tektonic.jcomeau.com