[EMAIL PROTECTED] schrieb: > Guido> I worry that dropping the special allocator will be too slow. > > Greg> Surely there's some compromise that would allow recently-used ints > Greg> to be kept around, but reclaimed if memory becomes low? > > Martin> Hardly. The efficiency of the special-case allocator also comes > Martin> from the fact that it doesn't ever have to release memory. Just > Martin> try changing it to see what I mean. > > Wouldn't use of obmalloc offset much of that? Before obmalloc was > available, the int free list was a huge win. Is it likely to be such a huge > win today?
That's my theory: it isn't a huge win. Guido has another theory: it's still faster. Only benchmarking can tell. Regards, Martin _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com