Building CPython

Marko Rauhamaa marko at pacujo.net
Thu May 14 12:29:40 EDT 2015


BartC <bc at freeuk.com>:

> That's a shame because I wanted to tinker with the main dispatcher
> loop to try and find out what exactly is making it slow. Nothing that
> seems obvious at first sight.

My guess is the main culprit is attribute lookup in two ways:

 * Each object attribute reference involves a dictionary lookup.

 * Each method call involves *two* dictionary lookups plus an object
   creation.

Tell us what you find out.


Marko



More information about the Python-list mailing list