Open gafter opened 1 year ago
Ah, TreeTransform is quadratic because comparing trees for equality is linear in the size of the tree. I'm working on an option for @auto_hash_equals
where it will make the type a reference type and make all of the fields const
so it can write a much more efficient ==
implementation. That appears to solve the problem for TreeTransform
(but not for innermost
)
Apparently this package is (accidentally) quadratic. See https://gist.github.com/gafter/a231febe5a7ec09bfa4968b46d97a970
We should figure out why and fix it. It might be the equality relation used in a hash table.