STINNER Victor <victor.stin...@gmail.com> added the comment:

> I’ve run the benchmark that you've suggested with a minor change (to avoid 
> the cost of LOAD_ATTR)

Be careful. Moving "l.insert" lookup of the loop might make the code slower. I 
never looked why. But Python 3.7 was also optimized in many places to call 
methods, so I'm not sure anymore :)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32534>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to