Cache dependencies #928
rvcas
started this conversation in
Core language features
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What is your idea? Provide a use case.
Cache dependencies using
CheckedModule::to_cbor
.Why is it a good idea?
It will allow us to have the compiler avoid doing work it's already done on subsequent runs of
check
andbuild
.Instead of parsing and type checking modules that won't often change from dependencies we can load up the fully type checked module from the file system.
What is the current alternative and why is it not good enough?
The current state is such that the compiler must parse and type check every module on every invocation of the compiler. In the future as projects grow this should help reduce the time it takes to compile entire projects.
Beta Was this translation helpful? Give feedback.
All reactions