跳到正文
原文
Simon Willison·· 1 天前AI 评分28

用 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 应用发现,混合行尾保留逻辑占据了主要负载。在 15,296 个 CPU 栈中,`preserve_endings` 出现比例达 64.8%,`SequenceMatcher.find_longest_match` 贡献了 38.3% 的叶节点采样。

来源:Simon Willison · simonwillison.net