forked from M-Labs/nac3
1
0
Fork 0
nac3/nac3core
pca006132 279f47f633 nac3core/codegen: avoid sending unifiers
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).
2021-10-17 13:02:18 +08:00
..
src nac3core/codegen: avoid sending unifiers 2021-10-17 13:02:18 +08:00
Cargo.toml fix tests and switch to insta 2021-10-03 16:39:12 +08:00
rustfmt.toml refactored typedef 2021-07-23 15:57:37 +08:00