From fdad106980afc33c6dbfcdd9bd0ae194ddc327aa Mon Sep 17 00:00:00 2001 From: commilitia Date: Sat, 11 Jul 2026 19:58:41 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20changelog=202026-07-11=20=E6=95=88?= =?UTF-8?q?=E8=83=BD=E7=AC=AC=E4=B8=80=E5=B1=A4=E2=80=94=E2=80=94=E6=8E=83?= =?UTF-8?q?=E6=8F=8F=E6=8F=90=E9=80=9F=EF=BC=88category=20=E8=A8=98?= =?UTF-8?q?=E6=86=B6=E5=8C=96=20=EF=BC=8B=20orphan=20=E8=91=89=E5=A1=8A?= =?UTF-8?q?=E9=A0=90=E8=A8=88=E7=AE=97=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增 changelog 條目+md-twin 同步。下游效能訴求一之第一層:S3 category 以 WeakMap 記憶化砍除跨 pass 重複 el.matches()(實測約降三成)、S2 orphan 以上攀預計算「非葉塊」取代逐塊 querySelector 掃 子樹之 O(Σ塊子樹)。皆無狀態、保行為、無公開 API 變更;測試 129→130 全綠。並記亲驗數據與 insidePill 之下一機會。changelog HTML 經 build.sh 重建。 --- docs/changelog.html | 407 +++++++++++++++++++++++++++++----------- docs/changelog.src.html | 29 +++ 2 files changed, 326 insertions(+), 110 deletions(-) diff --git a/docs/changelog.html b/docs/changelog.html index ad61162..f37a137 100644 --- a/docs/changelog.html +++ b/docs/changelog.html @@ -1,4 +1,4 @@ - + @@ -2545,6 +2545,19 @@ main > *:nth-child(n+6) { animation-delay: 0.46s; }

聚珍(Juzhen)/cjk-autospace 變更紀錄。← 回文檔

+

效能第一層:掃描提速(category 記憶化 + orphan 葉塊預計算) 2026-07-11

+

下游效能訴求(掃描疑 O(n²))之第一層——無狀態、保行為、無公開 API 變更之確定收益。單元測試 129→130 全綠、輸出不變。

+

優化

+ +

亲驗與待議

+ +

splitTreeAfter 攀升對稱守衛(opaque 中間祖先不再被克隆肢解) 2026-07-11

下游 .selection-bar-message 病例:垂懸字(orphan)之段末實義字落於 opaque <button>(巢於可切 <span>)時,splitElementAt 僅驗頂層 span 可切;splitTreeAfter 逐層克隆「文本節點→top」祖先鏈時,中間 opaque button 從未複查即被克隆肢解(複製出 splitoff button、破壞互動元素)。firstTextlastText 守下潛(遇非可切回 null),攀升卻無對稱守衛——此即真正病根,下游 per-instance 迴避僅治標。

修復

@@ -2779,6 +2792,22 @@ main > *:nth-child(n+6) { animation-delay: 0.46s; }