thesadrogue / TheSadRogue.Primitives

A collection of primitive data structures for working with a 2-dimensional grid.
MIT License
21 stars 6 forks source link

Determine if Custom Hashers vs No Hasher Makes a Performance Difference #112

Open Chris3606 opened 1 year ago

Chris3606 commented 1 year ago

Currently, classes like Area which accept a custom hasher pass EqualityComparer.Default to the underlying structures if there is no result. However the Point hashing tests provide at least initial evidence to suggest passing EqualityComparer.Default may be slower than passing no hasher at all. We should test this and optimize accordingly.