From d995962425d6bfd5244169c0ac263c8420c10068 Mon Sep 17 00:00:00 2001 From: claude_dev Date: Wed, 26 Aug 2026 00:25:57 +0800 Subject: [PATCH] =?UTF-8?q?perf(factor):=20=E8=90=BD=E5=BA=93buffer=2020?= =?UTF-8?q?=E2=86=921=E9=80=90=E5=9B=A0=E5=AD=90=E5=8D=B3=E5=AD=98?= =?UTF-8?q?=E2=80=94=E2=80=94=E9=87=8D=E5=90=AF=E9=A3=8E=E6=9A=B4=E4=B8=8B?= =?UTF-8?q?=E5=8D=95=E6=AC=A1=E6=9C=80=E5=A4=9A=E4=B8=A2=E5=9C=A8=E9=80=94?= =?UTF-8?q?1=E5=9B=A0=E5=AD=90(=E6=9B=BE=E4=B8=80=E6=AC=A1=E4=B8=A26?= =?UTF-8?q?=E4=B8=AA=E6=9C=AA=E6=94=92=E6=BB=A1=E6=89=B9)=20[vps]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sanguo_factor/batch_eval.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sanguo_factor/batch_eval.py b/sanguo_factor/batch_eval.py index 456eab9..d522c94 100644 --- a/sanguo_factor/batch_eval.py +++ b/sanguo_factor/batch_eval.py @@ -116,7 +116,8 @@ def run_batch_eval( errors.append(name) buffer.append(row) done += 1 - if len(buffer) >= 20 or done == len(factor_names): + # 逐因子即存:容器重启风暴下单次最多丢在途 1 因子(buffer=20 曾丢 6 个) + if len(buffer) >= 1 or done == len(factor_names): eval_store.save_results(eval_db, run_id, buffer) buffer = [] if progress_cb: