3 ms·
this is a very interesting talk around the same topic - https://lwn.net/Articles/754163/ https://lwn.net/Articles/754163/ > But Shapiro may not be aware that t
by sandGorgon 8y ago
this is a very interesting talk around the same topic - https://lwn.net/Articles/754163/ https://lwn.net/Articles/754163/
> But Shapiro may not be aware that the Python core developers have often preferred simpler, more understandable code that is easier to read and follow, over more complex algorithms and data structures in the interpreter. Some performance may well have been sacrificed for readability.
> Mark Shannon said that Python 3.7 has added a feature that should provide a similar boost as the method-lookup caching used in the experiment. Shapiro said he had looked at those changes but still believed his proposed mechanism would provide more benefit. Attribute lookup still requires five lookups in CPython, while it is only one lookup in the experimental version. Shannon did not sound entirely convinced of that, however.