forked from M-Labs/nac3
pca006132
279f47f633
Previously, we have to copy types from one unification table to another, and make the table sendable. This requires cloning (processing) the whole table 3 times per function call which is not efficient and uses more memory than required when the unification table is large. We now use a concrete type table to only copy the type we need. This reduces the overhead as we only need to process the unification table for once (when we do the function codegen), and reduces memory usage by a bit (but not noticeable when the unification table is small, i.e. the types are simple). |
||
---|---|---|
.. | ||
codegen | ||
toplevel | ||
typecheck | ||
lib.rs | ||
location.rs | ||
symbol_resolver.rs |