Profiling web-edit with Python 3.15: flame graphs and source heatmaps
Summary
Simon Willison profiles his new web-edit app using Python 3.15's built-in sampling profiler, revealing that mixed line-ending preservation dominated CPU time, and demonstrates how to generate flame graphs and source heatmaps with the new tooling.
View Cached Full Text
Cached at: 10/13/26, 10:48 PM
Similar Articles
Python 3.15's Ultra-Low Overhead Interpreter Profiling Mode – Ken Jin's Blog
Ken Jin's blog describes Python 3.15's new ultra-low overhead interpreter profiling mode that uses dual dispatch tables to enable efficient trace recording for the JIT compiler, reducing slowdown compared to previous approaches.
Profiling.sampling – Statistical Profiler
Python 3.15 introduces the profiling.sampling module, Tachyon, a statistical profiler that periodically samples stack snapshots with minimal overhead, suitable for development and production environments.
@mattpocockuk: A flow I just tried and LOVED: 1. /grill-with-docs, talking about a new bit of UI 2. Asks me a question I can't answer …
Matt Pocock shares a workflow using Claude Code's /grill-with-docs and /prototype commands to iterate on UI designs and summarize learnings before continuing.
@RisingSayak: I realized that what I cannot profile, I cannot optimize. This is why I embarked on a little project in Diffusers, to t…
Sayak Paul describes a project to profile and optimize Diffusers pipelines using torch.compile, and announces a tutorial series by Ari G. on the topic.
@WillNessAI: I built a variant of @mattpocockuk's grilling skill dedicated to frontend and it has improved how I build new apps and …
WillNessAI built a frontend-focused variant of Matt Pocockock's grilling skill for Claude, enabling rapid prototyping with multiple variants and iterative feedback, and integrated it into his Wayfinder workflow.