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, <exar...@twistedmatrix.com> wrote:

> On 12:38 am, alex.gay...@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
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to