mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-27 06:43:19 +08:00
An executable's LLVM text was divided into one partition per 4 MiB, so a program under 4 MiB was optimized and compiled on one thread, and one of up to 32 MiB used fewer than eight cores. A module over 1 MiB now gets at least eight partitions of 512 KiB or more: four up to 2 MiB, and eight up to 32 MiB. Larger modules keep one partition per 4 MiB. The count still depends only on the module's size.