[pypy-dev] PyPy is much slower than CPython example / question

Alex Gaynor alex.gaynor at gmail.com
Fri Jul 8 03:15:08 CEST 2011


No, you would need to implement list.__setitem__ in Python, which we could
do, does the JIT see such code?

Alex

On Thu, Jul 7, 2011 at 6:05 PM, <exarkun at twistedmatrix.com> wrote:

> On 12:38 am, alex.gaynor at gmail.com wrote:
>
>> repeat itself is not slow, it's just that when it's used it iterates over
>> it, in RPython (meaning it's not jit'd) which results in a dictionary
>> lookup
>> for the next() method at every iteration, which is slowish, list hits a
>> special case so it doesn' thave that overhead.
>>
>
> Is it time to reimplement repeat in Python then?
>
> Jean-Paul
>



-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20110707/d2723108/attachment.html>


More information about the pypy-dev mailing list