[pypy-issue] [issue910] eval(code, globals, locals) slower than cpython

Andrew Mahone tracker at bugs.pypy.org
Sun Oct 16 02:19:55 CEST 2011


New submission from Andrew Mahone <andrew.mahone at gmail.com>:

This is about 2x slower than cpython on pypy:
python -m timeit -n 250000 -r 5 -s "e = compile('a+'*255+'a','','eval'); a = 1;
g = globals(); l = locals()" "eval(e,g,l)"

Per discussion on irc, eval may be retrieving the calle.r frame even when it
does not need to, causing jit bailout

----------
messages: 3307
nosy: pypy-issue
priority: bug
status: unread
title: eval(code, globals, locals) slower than cpython

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


More information about the pypy-issue mailing list