The simple type unification algorithm suffered from some serious performance and memory problems when used with certain code bases. This adds some crucial optimizations that improve performance drastically.
12 lines
249 B
Plaintext
12 lines
249 B
Plaintext
Edge: str("hey") -> var(foo) # foo
|
|
Edge: str("hey") -> var(foo) # foo
|
|
Edge: str("t1") -> var(a) # a
|
|
Edge: str("t2") -> var(a) # a
|
|
Vertex: str("hey")
|
|
Vertex: str("t1")
|
|
Vertex: str("t2")
|
|
Vertex: var(a)
|
|
Vertex: var(a)
|
|
Vertex: var(foo)
|
|
Vertex: var(foo)
|