perf(phase2): llc 并行线程数 8 提升到 16

对齐 TPC Phase2Translator n_workers=os.cpu_count()(本机 16 核)。
This commit is contained in:
TermiNexus committed 2026-08-19 07:56:31 +08:00
1 parent 6807082853
commit 63caf152c2
1 file changed
+2 -1
+2 -1
View File
@@ -438,7 +438,8 @@ def compile_ll_to_obj(ir_path: str, output_dir: str, module_name: str, cc_cmd: s
# - worker 只调 stdlib.system(),不做任何池分配(MemBuddy 分配非线程安全)
# - 依赖 CRT system() 的多线程安全性(ThreadingTest 已验证)
# ============================================================
LLC_MAX_THREADS: t.CDefine = 8
# llc 并行最大线程数(参考 TPC Phase2Translator n_workers=os.cpu_count(),本机 16 核)
LLC_MAX_THREADS: t.CDefine = 16
class LlcTask: