Comparison via Equals or HashCode. which is faster?
问题 I have to compare a object with the raw properties of the same class. Meaning, i have to compare those: struct Identifier { string name; string email; } with the two strings name and email. I know i could just create a new Identifier instance for name and email and pass that into equals(). My application has to be very fast and resource-saving. I know that comparison via hashcode isn't a good way, because as explained here there are collisions. But collisions are okay for me, i just need it