Skip to content
Read the original: Simon Willison
Published

Python 3.15 profiler shows line-ending preservation dominating web-edit workload

AIProfiling the web-edit app with Python 3.15's built-in profiling.sampling found that preserve_endings appeared in 64.8% of 15,296 recorded CPU stacks, with SequenceMatcher.find_longest_match accounting for 38.3% of leaf samples. Simon Willison says sampling all threads was essential, since 95.1% of stacks ran in AnyIO's worker thread, which a main-thread-only profile would have missed.
Read the original simonwillison.net
Source details

Simon Willison · simonwillison.netPublished · added here

Original title: Profiling web-edit with Python 3.15: flame graphs and source heatmaps