Implement better hashing
embray opened this issue · comments
E. M. Bray commented
Currently all GapObj
s are hashed simply by calling hash(str(self))
which can be both slow, and lead to surprising hash collisions.
In particular it would be nice if GapInteger
s had the same hash value as Python/Sage integers. See https://trac.sagemath.org/ticket/30498