On 20/06/20 1:15 pm, Steven D'Aprano wrote:
Here is some evidence that cache misses makes a real difference for
performance. A 70% slow down on calling functions, due to an increase in
L1 cache misses:

https://bugs.python.org/issue28618

There's no doubt that cache misses are a big issue for machine
instructions. But the same reasoning doesn't automatically extend
to bytecode instructions, or other data in Python objects. The
interpreter executes tens to hundreds of machine instructions for
each bytecode instruction fetched.

but there is a huge gulf between faster in theory and faster in practice

Yes, and also between slower in theory and slower in practice.
There's no substitute for measurement when it comes to things
like this.

--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/DIG3HL33BWEE7EXYA7VMT4SBMP6Q47QP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to