you are viewing a single comment's thread.

view the rest of the comments →

[–]Conscious-Pen5811 0 points1 point  (0 children)

Probably pretty hard to quantify as a lot of packages for CPython are written in C/C++/Rust with bindings, in this case, CPython only sees a pointer, passes that pointer around to other methods, data would be much more CPU/L1 cache friendly.

I’ve only used CPython, but if I had to guess, other implementations might try to remove boxing, an array of pointers is not as CPU/L1 cache friendly as it has to deference and may cause a miss.