Simon Willison·· 3 天前AI 评分3
Python 3.15 profiling.sampling 剖析 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% 的 CPU 堆栈中,其中 `SequenceMatcher.find_longest_match` 贡献了 38.3% 的叶子样本。
来源:Simon Willison · simonwillison.net