<@U74HWEPTP> do you mean cryptographic hashing or ...
# random
v
@Shawn do you mean cryptographic hashing or hashing as in
hashcode
? If the later then I agree, we need a straightforward way to generate hashes of composite objects which does not require knowing about primary numbers or magic formulas. How about we move to #C0B8Q383C with that?
g
cryptographic
k
But for object hashes there's
Objects.hash()
on the JVM I think.
2
v
@karelpeeters I did no know about
Objects.hash()
, thanks!
r
Notice that
Objects.hash
is slitly slower than an own implementation. But only relevant if you store a lot of objects in a HashSet/Map
v
@robstoll why slower? Because of the method call?
r
I don't remember the details but I remember that it was mentioned in effective Java