daml/compiler
Moritz Kiefer cd69b6f553
Cache rewrites of PRSelf references (#2028)
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.
2019-07-08 08:48:09 +02:00
..
daml-lf-ast Cache rewrites of PRSelf references (#2028) 2019-07-08 08:48:09 +02:00
daml-lf-proto intern package IDs in LF (#1614) 2019-06-26 11:15:24 +02:00
daml-lf-reader [hs-ledger-bindings tests] Read the main dalf from the DAR manifest (#1803) 2019-06-21 15:32:40 +00:00
daml-lf-tools Cache rewrites of PRSelf references (#2028) 2019-07-08 08:48:09 +02:00
hie-core Expose TcModuleResult in RuleTypes (#2014) 2019-07-04 18:29:52 +00:00
lsp-tests Fix some expected failures in damlc-shake-tests (#2010) 2019-07-04 14:57:14 +00:00
scenario-service check that submitter is in maintainers for lookup by key (#1967) 2019-07-05 09:34:26 +00:00
README.md open-sourcing daml 2019-04-04 09:33:38 +01:00

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.