Re:Which Machines Do Computer Architects Admire? (2013)
by pjc50 on Thursday January 09, 2020 @06:01AM
(#22000160)
DRAM is pretty fast in throughput. The problem is the "random access" nature; every piece of indirection or pointer chaining is an unpredictable access. Every time you have a "." in your favourite object orientated language, every step in a linked list: if that's a cache miss, you have to wait for it to come back ... and then potentially cache miss the next lookup as well.
[ Parent
| on HN ]
Re:Which Machines Do Computer Architects Admire? (2013)
by AnimalMuppet on Thursday January 09, 2020 @12:43PM
(#22003476)
I'm not sure that "." does it, at least in C/C++. What's on the right should be very close in address to what's on the left, unless it's a reference.
In Java... not so much. I believe that "." in Java is the same as "->" in C/C++, unless what's on the right is a primitive data type rather than an object.