mirror of
https://github.com/enso-org/enso.git
synced 2024-12-27 05:34:07 +03:00
941512e0ba
This change adds serialization and deserialization of library bindings. In order to be functional, one needs to first generate IR and serialize bindings using `--compiled <path-to-library>` command. The bindings will be stored under the library with `.bindings` suffix. Bindings are being generated during `buildEngineDistribution` task, thus not requiring any extra steps. When resolving import/exports the compiler will first try to load module's bindings from cache. If successful, it will not schedule its imports/exports for immediate compilation, as we always did, but use the bindings info to infer the dependent modules. The current change does not make any optimizations when it comes to compiling the modules, yet. It only delays the actual compilation/loading IR from cache so that it can be done in bulk. Further optimizations will come from this opportunity such as parallel loading of caches or lazily inferring only the necessary modules. Part of https://github.com/enso-org/enso/issues/5568 work. |
||
---|---|---|
.. | ||
src/main/scala/licenses | ||
BenchTasks.scala | ||
build.properties | ||
BuildInfo.scala | ||
Cargo.scala | ||
CopyTruffleJAR.scala | ||
CustomLogManager.scala | ||
Distribution.scala | ||
DistributionPackage.scala | ||
Editions.scala | ||
EnvironmentCheck.scala | ||
FrgaalJavaCompiler.scala | ||
GatherLicenses.scala | ||
GenerateFlatbuffers.scala | ||
LauncherShimsForTest.scala | ||
LibraryManifestGenerator.scala | ||
NativeImage.scala | ||
Platform.scala | ||
plugins.sbt | ||
RecompileParser.scala | ||
StdBits.scala | ||
VerifyReflectionSetup.scala | ||
WithDebugCommand.scala |