[PyPy-issue] [issue656] Python code 20x slower than C++

Alex Gaynor pypy-dev-issue at codespeak.net
Sat Mar 5 16:54:41 CET 2011


Alex Gaynor <alex.gaynor at gmail.com> added the comment:

Changing min(a, b, c) to min(a, min(b, c)) brings this down to a reasonable 4x
slower (by removing all 5 allocations from the inner loop).

----------
status: unread -> chatting

_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue656>
_______________________________________________________



More information about the Pypy-issue mailing list