KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Can people recommend quick and simple ways to combine the hash codes of two objects. I am not too worried about collisions since I have a Hash Table which will handle that efficiently I just want something that generates a code quickly as possible. Reading around SO and the web there seem to be a few main candidates: XORing XORing with Prime Multiplication Simple numeric operations like multiplication/division (with overflow checking or wrapping around) Building a String and then using the String classes Hash Code method What would people recommend and why?
Tags (comma-separated)
Save Edits
Cancel