1
0
mirror of https://github.com/kalmarek/Groups.jl.git synced 2024-12-25 18:15:29 +01:00

remove threading in == for Automorphisms

This commit is contained in:
Marek Kaluba 2021-05-16 23:16:35 +02:00
parent 5da33782aa
commit 84bfbd7408
No known key found for this signature in database
GPG Key ID: 8BF1A3855328FC15

View File

@ -66,9 +66,11 @@ function Base.:(==)(g::A, h::A) where A<:FPGroupElement{<:AutomorphismGroup}
hash(g) != hash(h) && return false
# words are different, but hashes agree
@sync begin
!img_computed && Threads.@spawn img = equality_data(g)
!imh_computed && Threads.@spawn imh = equality_data(h)
if !img_computed
img = equality_data(g)
end
if !imh_computed
imh = equality_data(h)
end
equal = img == imh