[pypy-issue] [issue782] Order of calls changes performance

Armin Rigo tracker at bugs.pypy.org
Fri Jul 8 18:08:11 CEST 2011


Armin Rigo <armin.rigo at gmail.com> added the comment:

This is due to the fact that they are both using the same helper, py_update(),
with a different type of argument.  This causes the 2nd run to slow down.  If we
duplicate py_update() and call one or the other in calc() and calc_arr(), then
calc() takes always ~0.4 secs and calc_arr() always ~0.9 secs, independently on
the order in which they run.

This may be considered worth investigating, but may require some careful tweaks
in the JIT.  I would say it's a task "for later maybe"...

----------
nosy: +arigo
status: unread -> chatting

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue782>
________________________________________


More information about the pypy-issue mailing list