IllusionMods / IllusionFixes

A collection of fixes for common issues found in games by Illusion
GNU General Public License v3.0
157 stars 29 forks source link

[KK][GT] Use a nonallocating equality comparer for ChaReference #46

Closed mosirnik closed 1 year ago

mosirnik commented 1 year ago

The default equality comparer for enums incurs boxing overhead. This is fixed by using a custom equality comparer.

This issue doesn't affect KKS because the newer version of mscorlib has a nonallocating default equality comparer for enums.