Hi Alex,
On 30 August 2014 08:43, Armin Rigo <[email protected]> wrote:
> went down from 5.8ms per loop to 208us. However, I see that running
> the same example with 10000 ascii chars went up from 41.4us to 139us.
> Time to tweak.
Tweaked! See 65ac482d28d6. This was because if you used this kind of
code in RPython:
for c in unistring:
if c >= u' ':
...
then the comparison works, but is done by converting the character
back to a full unicode string and calling ll_strcmp()... so the big
overhead was caused half by the conversion costs and half by the extra
GC pressure.
A bientôt,
Armin.
_______________________________________________
pypy-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-dev