[issue12027] Optimize import this (patch to make it 10x faster)

STINNER Victor report at bugs.python.org
Sat May 7 11:52:54 CEST 2011


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

Patch to optimize this: make it 10 times faster.

Try attached benchmark script. On a debug build I got the following results:
 * original: 299.8 ms
 * patched: 23.2 ms

I expected a factor of 10 because it uses a C implementation of rot13 instead of an hand made Python implementation.

----------
components: Library (Lib)
files: python27_this_rot13.patch
keywords: patch
messages: 135432
nosy: haypo
priority: normal
severity: normal
status: open
title: Optimize import this (patch to make it 10x faster)
versions: Python 2.7
Added file: http://bugs.python.org/file21919/python27_this_rot13.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12027>
_______________________________________


More information about the Python-bugs-list mailing list