> Since the free list is limited to small longs, it will consume less than > 1,5 MB on a 64bit OS and less than 900kb on a 32bit OS in a worst case > scenario (2 * (1<<15) ~ 65k objects with a size of 14 / 22 byte each).
I'm puzzled as to how you arrive at this upper bound. You can surely have more than 2**16 integer objects whose abs values are all below 2**15, no? smallints=[] for i in range(2**20): smallints.append(i % 30000) Regards, Martin _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
