There are a few open source hashing libraries available for C# which purport to be faster than the inbuilt GetHashCode() method. One such library is MurmurHash. Here's how to use it:
First, install the MurmurHash NuGet package.
main.cs27 chars2 lines
Next, add a using statement for the MurmurHash namespace.
main.cs18 chars2 lines
Finally, use the MurmurHash algorithm like this:
main.cs125 chars4 lines
MurmurHash is available under the MIT license.
gistlibby LogSnag