Skip to content

Commit 34a0332

Browse files
disable hashconsing in fraction_iszero
1 parent f79cbfa commit 34a0332

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/polyform.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,10 @@ end
382382

383383
function fraction_iszero(x)
384384
!iscall(x) && return _iszero(x)
385+
old_hc = ENABLE_HASHCONSING[]
386+
ENABLE_HASHCONSING[] = false
385387
ff = flatten_fractions(x)
388+
ENABLE_HASHCONSING[] = old_hc
386389
# fast path and then slow path
387390
any(_iszero, numerators(ff)) ||
388391
any(_iszeroexpand, numerators(ff))

0 commit comments

Comments
 (0)