New submission from Armin Rigo <[email protected]>:

Removing multimethods had a big performance hit on the no-jit case, sometimes. 
I suspect it can be fixed relatively easily.  We *should* probably fix it.

Revision 93322cb79586 (hg merge remove-list-smm-2) makes nbody_modified much
slower; we can see that it makes this kind of code almost twice as slow:

    lst = [1.2, 3.4]
    for i in range(BIG):
        lst[1] = lst[1] + n

Revision d1459869ce85 (Merge remove-array-smm branch that kills multimethods
from the array module) makes crypto_pyaes.py much slower; not surprizingly, it
uses array.

"Much slower" is almost a factor two in both cases.

----------
messages: 5801
nosy: arigo, pypy-issue
priority: performance bug
status: unread
title: Removing multimethods slows the nojit case

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1505>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to