2 ms·
I don't know anything about SSDs, so I won't address that. (Though, it might be the same as RAM.) With RAM, you don't just say "Give me the 4 bytes starting at
by rcfox 10y ago
I don't know anything about SSDs, so I won't address that. (Though, it might be the same as RAM.)
With RAM, you don't just say "Give me the 4 bytes starting at 0x10A6E780". Instead, a whole block of memory around that address is loaded into the cache (pausing execution in the meantime), and then the value is pulled from there.
If the next value you read is in that same block of memory, you don't need to spend time loading a new block of memory into the cache.