1
0
mirror of https://github.com/kalmarek/GroupRings.jl.git synced 2024-11-19 06:30:27 +01:00

don't allocate full(X.coeefs) when computing hash

This commit is contained in:
kalmarek 2018-08-13 19:30:03 +02:00
parent d2e9688e9f
commit 86777050b1

View File

@ -190,7 +190,7 @@ function deepcopy_internal(X::GroupRingElem, dict::ObjectIdDict)
end end
function hash(X::GroupRingElem, h::UInt) 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 end
function getindex(X::GroupRingElem, n::Int) function getindex(X::GroupRingElem, n::Int)