跳到正文
原文
Simon Willison·· 2026-10-13

用 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` 出现在 64.8% 的 15,296 个 CPU 栈中,`SequenceMatcher.find_longest_match` 占叶子样本的 38.3%。

入选记录

未入选两次之和 44 < 门槛的两倍 152

信源等级
媒体与个人,这一级的门槛是 76 分
预筛
通过:用GPT-6 Codex分析Python性能,属AI开发工具用法

评分由模型按同一份标准独立打两次,满分 100;两次之和达到门槛的两倍才入选。门槛按信源等级设定。

来源:Simon Willison · simonwillison.net