Simon Willison·· 1 天前AI 评分21
用 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 应用做性能分析,发现混合换行符保留逻辑占用大量 CPU:`preserve_endings` 出现在 64.8% 的采样栈中,`SequenceMatcher.find_longest_match` 贡献 38.3% 的叶子样本。
来源:Simon Willison · simonwillison.net