Hacker News new | ask | show | jobs
by austincheney 2061 days ago
Hash map then.
1 comments

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...
Hash map properties are randomly accessed from memory opposed to array indexes.