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
1 changed files with 5 additions and 3 deletions

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