Is Python Code Sensitive to CPU Caching?
Cache-aware programming can make a huge performance difference,
especially when writing code in C++ or Rust.
Python is a much more high-level language,
and doesn't give us that level of control over memory layout of our data structures.
So does this mean that CPU caching effects aren't relevant in Python?
In this post, we'll conduct some basic experiments to answer this question,
by accessing list element either in sequental order or in a random order.
Results indicate that randomized access is ...
Read more at lukasatkinson.de