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. |
||
---|---|---|
.. | ||
src/DA/Daml/LF | ||
BUILD.bazel |