don't allocate full(X.coeefs) when computing hash
This commit is contained in:
parent
d2e9688e9f
commit
86777050b1
|
@ -190,7 +190,7 @@ function deepcopy_internal(X::GroupRingElem, dict::ObjectIdDict)
|
|||
end
|
||||
|
||||
function hash(X::GroupRingElem, h::UInt)
|
||||
return hash(full(X.coeffs), hash(parent(X), hash(GroupRingElem, h)))
|
||||
return hash(X.coeffs, hash(parent(X), hash(GroupRingElem, h)))
|
||||
end
|
||||
|
||||
function getindex(X::GroupRingElem, n::Int)
|
||||
|
|
Loading…
Reference in New Issue