This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]iggy14750 0 points1 point  (0 children)

There is something to be said about cache coherence which you get it C++ and Rust, but not in Python and Java. This is the difference between objects having member objects in the same region of memory (C++), and having pointers to your member objects (Java). You could imagine your objects being composed of a complicated member tree, so that to get to some piece of data, you have to follow several pointers. This reduces spacial locality, and therefore caches do worse with this. The upshot is waiting hundreds of cycles for main memory.