3 ms·
Hm. So you're saying that indexing into a hash map can be faster than indexing into an array? How would this be possible? I mean, under the hood a hash map is g
by layoutIfNeeded 6y ago
Hm. So you're saying that indexing into a hash map can be faster than indexing into an array? How would this be possible? I mean, under the hood a hash map is going to an array too, which is being indexed based on the hash value...
- austincheney 6y agoHash map properties are randomly accessed from memory opposed to array indexes.