Files
SnowLuma/packages
DrSmoothl d17381a221 perf(webui): batch log SSE into ~80ms flushes instead of per-line setState
日志页每收到一条日志就 setLogs(prev => [...prev.filter(id≠), entry].slice(-cap)),
高日志速率下是每条一次 O(n) 过滤+复制 + 一次 React commit。改为入队到 pending、
每 ~80ms 批量 flush:一次 O(n) 合并(Map 去重、last wins)+ 一次 commit。去重(重连
重放同 id)与 maxLines 上限语义保持不变,卸载时 dispose + 清 timer。
2026-07-02 15:02:13 +08:00
..
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00