Let's Talk About Hash Functions
summary
History and current state of string hash functions in .NET: the talk traces the implementations from the .NET 2002 primitive through the 2010 update to the latest version, explains the design goals and requirements for these hash functions, and contrasts general-purpose hashes with cryptographic hashes (why crypto hashes exist and why they are not used by default). It also covers quality testing using the SMHasher suite and presents XXH3 with a .NET implementation that reportedly outperforms the current string.GetHashCode in speed and likely in quality.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 3:28What are hash functions?
- 9:48Hash collisions and Birthday Problem
- 17:30MD5 flaws
- 22:43Hash functions in hash tables
- 25:32String.GetHashCode in .NET
- 35:45Marvin Hash and randomization
- 42:07Missing hash functions in .NET
- 43:52Choosing a good hash function
- 52:37XXH3 and high-performance hashing
- 1:00:05Summary
- 1:02:15Q&A
