filmov
tv
Here Is Why HashSet Is So Fast in .NET

Показать описание
In this video, we will implement custom hash table class, so to demonstrate the working principle behind .NET collections HashSet and Dictionary. We will also implement a custom GetHashCode on the string, demonstrating the techniques in mapping objects to integer numbers and explaining criteria that a good hashing function must comply with.
In the rest of the demo, we are implementing a custom class which combines hash codes of multiple data fields into one hash code, using modern techniques supported by .NET. At the very end of the video, you will learn about security measures taken in .NET to prevent hash flooding attacks.
Links:
Chapters:
00:00 Introducing hash tables
01:05 Implementing GetHashCode method on strings
06:08 The working principle of a hash table
09:02 Resolving collisions in the hash table
12:28 Implementing other methods a hash table exposes
17:40 Demonstrating the hash table in practice
19:31 Preparing a custom class for use in hash tables
21:49 Understanding the hash flooding attack vector
Learn more from video courses:
Other videos on this channel you may be interested in watching:
Комментарии