Package-level modular Lua compilation & disk chunk cache #5
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Currently, Wurst performs whole-program IM translation, whole-program inlining, and whole-program dead code elimination for every build, outputting a single monolithic
war3map.lua. This makes incremental builds impossible.Implementation Tasks
WPackageas the primary compilation unit boundary.-dev/-incrementalcompiler mode that disables cross-package inlining and whole-program dead code elimination._build/cache/lua/<pkg>_<content_hash>.lua.init_<Package>,config,main) intowar3map.luain <20ms.