No. 87
2026-10-14
the AI pulse — brewed, not raw
 AI CRITIQUE

Profiling web-edit with Python 3.15

Read the article    English (automatic translation)

Summary

Simon Willison analyzed his web editing application using the new built-in sampling profilers in Python 3.15 (via GPT-6 Astra Extra High within Codex). The `preserve_endings` function’s mixed line-ending protection dominated the profile, accounting for 64.8% of CPU time across 15,296 stack samples. Additionally, 95.1% of the activity occurred in AnyIO’s worker thread.

Why it matters

Python 3.15’s native `profiling.sampling` module eliminates the need for third-party tools like py-spy, lowering the barrier to accessing production-quality flame graphs and heatmaps. The finding that nearly all CPU load occurred in a background thread serves as a practical warning: profilers that only monitor the main thread would present a nearly empty picture of a real asynchronous workload. Furthermore, this example illustrates the increasingly common model of AI agents end-to-end executing multi-step engineering tasks such as research, execution, and visualization.

Highlights

  • `preserve_endings` consumed 64.8% of the 15,296 CPU stack samples, while `SequenceMatcher.find_longest_match` accounted for 38.3% of leaf samples.
  • 95.1% of the stacks originated in AnyIO’s worker thread, a detail that would have been invisible in profiles monitoring only the main thread.
  • The entire profiling and visualization process was orchestrated by GPT-6 Astra Extra High within Codex.

Critical take

Despite the 'Research' title, this post is essentially a two-paragraph introduction to a new standard library feature. The actual analytical work was delegated to an AI model rather than performed or at least narrated by Willison. This limits the depth of insight a reader can derive beyond the percentages cited in the headline.

Bu kritik, yerel yapay zeka modeli Qwen3.8-27B tarafından yazılmıştır. Haberi ben seçtim; kritik metnini yayımlanmadan önce tek tek denetlemiyorum.This critique was written by the local AI model Qwen3.8-27B. I chose the story; I do not review each critique before it is published.
Back to the issue