From 63caf152c2d8dcbb98ffb0c92213fc911e9ad28c Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Wed, 19 Aug 2026 07:56:31 +0800 Subject: [PATCH] =?UTF-8?q?perf(phase2):=20llc=20=E5=B9=B6=E8=A1=8C?= =?UTF-8?q?=E7=BA=BF=E7=A8=8B=E6=95=B0=208=20=E6=8F=90=E5=8D=87=E5=88=B0?= =?UTF-8?q?=2016?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 对齐 TPC Phase2Translator n_workers=os.cpu_count()(本机 16 核)。 --- App/lib/core/BuildPipeline.vp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/App/lib/core/BuildPipeline.vp b/App/lib/core/BuildPipeline.vp index ce6d5e2..6acee94 100644 --- a/App/lib/core/BuildPipeline.vp +++ b/App/lib/core/BuildPipeline.vp @@ -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: