mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
cd69b6f553
Previously we rewrote references to `PRSelf` to `PRImport` references every time we call `initWorld`. However, we call `initWorld` quite often (e.g. every time we run a scenario) while the packages that need to be rewritten stay constant. Since rewriting the package references requires traversing the whole package, this can be quite expensive. This PR moves the rewriting of package references out of `initWorld` and caches it as part of `GeneratePackageMap`. On a large project where I tested this, this caused a drop in the runtime of `daml test` from 250s to 200s. In the IDE this can also make a pretty big difference since we call this everytime we run a scenario which we do on every file change. |
||
---|---|---|
.. | ||
daml-lf-ast | ||
daml-lf-proto | ||
daml-lf-reader | ||
daml-lf-tools | ||
hie-core | ||
lsp-tests | ||
scenario-service | ||
README.md |
DAML Compiler
This directory contains several libraries used by and the executable for the DAML compiler.
Libraries
daml-lf-ast
: The DAML-LF AST and type checker.