[New-bugs-announce] [issue2013] Long object free list optimization

Christian Heimes report at bugs.python.org
Tue Feb 5 04:07:48 CET 2008


New submission from Christian Heimes:

The patch adds a free list of long objects with size 1 or -1. It has
quite a tremendous effect on code like list(range(1000)).

$ ./python -m timeit "for i in range(100): list(range(1000))"

Without patch:
10 loops, best of 3: 79 msec per loop

With patch:
10 loops, best of 3: 20.8 msec per loop

----------
components: Interpreter Core
files: long_freelist.patch
keywords: patch
messages: 62060
nosy: tiran
priority: normal
severity: normal
status: open
title: Long object free list optimization
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file9355/long_freelist.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2013>
__________________________________


More information about the New-bugs-announce mailing list