mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 07:51:43 +03:00
c63d74647d
A recent patch introduced custom terms in expressions manipulated by the interpreter. For typing reasons, a traversal is done to extend the supplied expression with these custom terms — it's functionally the identity, but, due to the fact that the type-checker can't infer covariance of our AST terms on their phantom parameter, playing by the rules imposes a full traversal + rebuild. Without resorting to a (constrained) `Obj.magic`, this patch avoids extra intermediate conversions, which is enough to cut out the huge extra cost we were incurring. Closes #516 |
||
---|---|---|
.. | ||
catala_utils | ||
dcalc | ||
desugared | ||
lcalc | ||
literate | ||
plugins | ||
scalc | ||
scopelang | ||
shared_ast | ||
surface | ||
verification | ||
catala_web_interpreter.ml | ||
catala.ml | ||
driver.ml | ||
driver.mli | ||
dune | ||
index.mld | ||
plugin.ml | ||
plugin.mli | ||
tests.ml |