3 ms·
Exploring Swift Dictionary's Implementation
- mcguire 11y agoAn interesting introduction to hash maps, with a fairly simple implementation. For more fun, check out Python's implementation, which uses the remaining bits of the hash instead of linear probing; Robin Hood hashing, that rearranges entries to keep probing chains short; and the security issues caused by easily determined hashing.
- melling 11y agoAnkit also explores Arrays in an earlier post: http://ankit.im/swift/2016/01/08/exploring-swift-array-implementation/ http://ankit.im/swift/2016/01/08/exploring-swift-array-imple...