mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-01 07:33:12 +08:00
A dev executable was one partition up to 1 MiB of LLVM text, so every edit compiled the whole program again. Unoptimized partitions are compiled on their own, with nothing imported across them, so dividing a program does not change its code's quality, and the helper reuses each partition an edit does not change from the partition cache. nativeProgramPartitions now takes whether the program is optimized. Dev executables are divided from 64 KiB of LLVM text, with at least 32 KiB per partition: four partitions up to 128 KiB, then at least 8 as before. Release and speed executables keep their partition and code generation counts.