[pypy-dev] Poor performance with custom bytecode

Armin Rigo arigo at tunes.org
Fri Feb 17 18:30:31 CET 2012

Hi Anto,

On Fri, Feb 17, 2012 at 14:18, Antonio Cuni <anto.cuni at gmail.com> wrote:
>>>>> def foo(x):
> ....     return foo.__len__()

How about "return len(foo)" instead?  That's even more natural as
Python code.  But I guess anyway that all three solutions get
JIT-compiled to basically the same thing.

A bientôt,


More information about the pypy-dev mailing list