Skip to content

Commit

Permalink
perf: remove redundant computation
Browse files Browse the repository at this point in the history
  • Loading branch information
giannipetrella committed Jan 7, 2025
1 parent 35a1760 commit f9a93d9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/QuiverTools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -955,9 +955,7 @@ function canonical_decomposition(Q::Quiver, d::AbstractVector{Int})
# end
generic_subdimensions = filter(e -> e != d, all_generic_subdimension_vectors(Q, d))
for e in generic_subdimensions
if d - e in generic_subdimensions &&
generic_ext(Q, e, d - e) == 0 &&
generic_ext(Q, d - e, e) == 0
if d - e in generic_subdimensions
return vcat(canonical_decomposition(Q, e), canonical_decomposition(Q, d - e))
end
end
Expand Down

0 comments on commit f9a93d9

Please sign in to comment.