Simon Willison·· 1 天前
Python 3.15 性能分析:web-edit 应用的火焰图与源码热图
Profiling web-edit with Python 3.15: flame graphs and source heatmaps
SI 导读
Python 3.15 内置的 `profiling.sampling` 对 web-edit 应用进行性能分析,显示混合行尾保留逻辑主导了繁忙编辑负载。`preserve_endings` 出现在 64.8% 的 CPU 栈中,`SequenceMatcher.find_longest_match` 贡献了 38.3% 的叶节点样本。
SI 评分37
来源:Simon Willison · simonwillison.net