Simon Willison·· 2026-10-13AI 评分20
用 Python 3.15 对 web-edit 做性能分析:火焰图与源码热力图
Profiling web-edit with Python 3.15: flame graphs and source heatmaps
AI 导读
用 Python 3.15 内置的 `profiling.sampling` 对未修改的 web-edit 应用做采样分析,发现混合换行符保留是编辑负载的主要开销:`preserve_endings` 出现在 15,296 个 CPU 栈的 64.8% 中,`SequenceMatcher.find_longest_match` 占叶子样本的 38.3%。
来源与证据
- 收录来源
- Simon Willison
- 查看原文
- simonwillison.net
- 来源记录时间
- 本站首次收录