[Python-Dev] Arena-freeing obmalloc ready for testing (original) (raw)

Fredrik Lundh fredrik at pythonware.com
Thu Mar 2 09:40:23 CET 2006


Tim Peters wrote:

For simpler fun, run this silly little program, and look at memory consumption at the prompts:

""" x = [] for i in xrange(1000000): x.append([]) rawinput("full ") del x[:] rawinput("empty ") """ For example, in a release build on WinXP, VM size is about 48MB at the "full" prompt, and drops to 3MB at the "empty" prompt.

hurray!

can we have more Tim sprints, please ?



More information about the Python-Dev mailing list