mirror of
https://github.com/kalmarek/GroupRings.jl.git
synced 2024-11-19 14:35:27 +01:00
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
Block a user