News for hackers. Stuff that matters.
Re:Memory access is O(N^[1/3]) by curiouscoding on Wednesday October 08, 2025 @07:20PM (#45521741)
Try measuring it! You'll quickly see that the latency of addressing n bytes of memory is definitely not O(1).

See eg "The Myth of RAM": https://www.ilikebigbits.com/2014_04_21_myth_of_ram_1.html

Re:Memory access is O(N^[1/3]) by dmitrygr on Wednesday October 08, 2025 @07:44PM (#45521896)
100% wrong

8^(1/3) is 2

So according to OP (and you by agreement), upgrading my machine from 4GB of RAM to 32GB should double my RAM access time. Obviously, and demonstrably, nothing of the sort occurs!

Re:Memory access is O(N^[1/3]) by tabender on Thursday October 09, 2025 @12:30AM (#45523513)
But for another example, we often say array access is O(1) - but if you increased the size of your array by 8x (assuming you were already operating at the speed of light) you would see that increase!
Re:Memory access is O(N^[1/3]) by dmitrygr on Thursday October 09, 2025 @07:32PM (#45534103)
What nonsense are you going on about? My Dram controller has no idea as to which bytes are part of my array and which bytes aren’t, so even if it tried to play along with your claims, it wouldn’t know how big my array was declared an thus which accesses and by how much to slow down.