claude-code-best/docs
claude-code-best ef10ad2839 fix: 优化内存峰值与 CPU 性能,降低 100-300MB 内存占用
- claude.ts: 流式字符串拼接从 O(n²) += 改为数组累积 join,消除 4 处热点
- Messages.tsx: 合并 3 组独立遍历为单次 pass(thinking/bash 查找、3-filter 链、divider/selectedIdx)
- HighlightedCode.tsx: ColorFile 实例添加模块级 LRU 缓存(50 条),避免重复创建
- screen.ts: StylePool 衍生缓存添加 1000 条上限淘汰,防止无界增长
- CompanionSprite.tsx: TICK_MS 从 500ms 提升至 1000ms,减少 setState 频率
- connection.ts: MCP stderr 缓冲从 64MB 降至 8MB
- stringUtils.ts: MAX_STRING_LENGTH 从 32MB 降至 2MB
- sessionStorage.ts: Transcript 写入队列添加 1000 条上限
- query.ts: spread 改 concat 减少一次数组拷贝
- PromptInputFooterLeftSide.tsx: 显示进程 pid 便于调试

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-02 00:45:03 +08:00
..
agent docs: 给 sur-skill-overflow-bugs 的代码块加 bash 标签 2026-04-29 12:38:27 +00:00
context docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
conversation docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
diagrams feat: 重构供应商层次 (#286) 2026-04-17 09:33:14 +08:00
extensibility docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
features fix: resolve dependency audit findings precisely (#361) 2026-04-26 19:49:54 +08:00
images docs: 更新文档, 加上配图 2026-04-01 11:14:20 +08:00
internals fixup: address CodeRabbit review on PR #386 2026-04-29 15:17:50 +08:00
introduction docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
logo docs: 尝试修复 docs 的位置 2026-04-01 10:09:00 +08:00
safety docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
task docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
test-plans Feat/integrate lint preview (#285) 2026-04-16 20:59:29 +08:00
tools docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
auto-updater.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
external-dependencies.md docs: 文档检查/check 20260419 (#296) 2026-04-19 09:30:00 +08:00
favicon.svg docs: 尝试修复 docs 的位置 2026-04-01 10:09:00 +08:00
lsp-integration.md Fix mintlify validate errors (#367) 2026-04-26 11:07:20 +08:00
memory-leak-audit.md feature: 20260429 代码巡检 (#383) 2026-04-29 09:14:26 +08:00
memory-peak-analysis.md fix: 优化内存峰值与 CPU 性能,降低 100-300MB 内存占用 2026-05-02 00:45:03 +08:00
telemetry-remote-config-audit.md feat: 关闭 Datadog 日志发送 2026-04-03 09:49:59 +08:00