Phase A: Parallel Lowering Passes & Early Elimination #15
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?
Summary
Parallelize independent function-level lowering passes and AST eliminations across CPU cores using Java parallel streams or ForkJoinPool.
Motivation & Impact
During incremental and full map compilation, several lowering passes operate on individual functions independently:
lua native lowering(~350ms)eliminate local type(~250ms)prepare lua dispatch(~450ms)eliminate varargs(~200ms)old-generics cast operands(~150ms)Total time spent in these passes: ~1,400ms – 1,800ms. Since functions in
prog.getFunctions()are largely independent during lowering, executing these passes concurrently across available cores will drop pass time to under 500ms.Acceptance Criteria