-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
segment: Compare 'identify' using a fnv hash
This adds a layer of indirection compared to direct use of reflect.DeepEqual, but has the benefit that this hash value can be written to disk if we want to persist it over crc runs. The fnv hash is used as it does not need any initial seed (as opposed to maphash, crc32, crc64), and it's likely faster than md5/sha*
- Loading branch information
1 parent
d2c7e5d
commit 641ce55
Showing
1 changed file
with
43 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters