The REALLY bad thing about Python lists ..

Erno Kuusela erno at
Mon May 15 09:31:33 EDT 2000

>>>>> "Tim" == Tim Peters <tim_one at> writes:

    Tim> On some flavors of Unix, this is more than just luck: realloc
    Tim> will eventually move the vector to "the end" of the address
    Tim> space, after which further growth is just a mix of boosting
    Tim> the VM high-water mark and the occasional sbrk. 

in the memory allocator used on gnu/linux, chunks of memory
larger than some threshold are allocated using mmap() on /dev/zero.
these blocks can then be moved around with mremap(), to archieve
a similar effect as described above.

  -- erno

More information about the Python-list mailing list