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

Marc-Andre Lemburg report at bugs.python.org
Sat May 7 13:58:56 CEST 2011


Marc-Andre Lemburg <mal at egenix.com> added the comment:

STINNER Victor wrote:
> 
> 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.

It's a bit late for an April 1st patch, but +1 for the fun of it :-)

----------

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


More information about the Python-bugs-list mailing list