You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just realized that the repeated substitutions inside unification are quadratic, which seems bad, and hopefully can be improved upon. (Maybe this requires mutation for unification variables).
I imagine looking up type variables when matching them, and substituting them later, might be better (not sure, but the lookup is at least O(1), so it seems a matter of constant factors ).
Using mutation (and treating a resolved variable as the type it resolves too everywhere needed) might be an alternative.
The text was updated successfully, but these errors were encountered:
I just realized that the repeated substitutions inside unification are quadratic, which seems bad, and hopefully can be improved upon. (Maybe this requires mutation for unification variables).
I imagine looking up type variables when matching them, and substituting them later, might be better (not sure, but the lookup is at least O(1), so it seems a matter of constant factors ).
Using mutation (and treating a resolved variable as the type it resolves too everywhere needed) might be an alternative.
The text was updated successfully, but these errors were encountered: