Problem
withStampedParaId(#85)每次 append/insert 都 getAllParagraphs() 全樹遞迴 + 重建 Set + 新建 generator。批次 authoring(insertBulletList/insertNumberedList 等高階 API 每 item 一呼叫)呈 O(N²)。正確性不受影響;現行 benchmark(reducer apply 路徑)未覆蓋此 chokepoint。
Type
performance
Source
Verify #85 R1 finding 4(regression lens):#85 (comment)
Expected
攤銷式唯一性檢查(如 document 級 cached ID set 隨 mutation 維護),或 bulk API 一次掃描多次配發。
Refs #85
Problem
withStampedParaId(#85)每次 append/insert 都getAllParagraphs()全樹遞迴 + 重建 Set + 新建 generator。批次 authoring(insertBulletList/insertNumberedList等高階 API 每 item 一呼叫)呈 O(N²)。正確性不受影響;現行 benchmark(reducer apply 路徑)未覆蓋此 chokepoint。Type
performance
Source
Verify #85 R1 finding 4(regression lens):#85 (comment)
Expected
攤銷式唯一性檢查(如 document 級 cached ID set 隨 mutation 維護),或 bulk API 一次掃描多次配發。
Refs #85