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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2013>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to