python-importtime-graph
AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.
Why it matters
Python developers can now visually pinpoint which module imports slow their startup, turning the built-in -X importtime trace into an actionable treemap.
A developer has released a free browser tool that visualizes how long Python takes to import each module when a program starts. You run Python with a special flag that prints import timings, then paste that text into the tool, which draws a treemap where bigger blocks mean slower imports. It is aimed at programmers diagnosing slow startup times.
Kevin Michel's python-importtime-graph is a free web tool that turns Python's import-time traces into a zoomable treemap, cutting the time engineers spend hunting down slow application startups. There is no cost or vendor lock-in; the benefit is faster performance debugging for any team maintaining Python applications.
The tool consumes output from 'python -X importtime', which prints a tree of per-module self and cumulative import times in microseconds. Kevin Michel's python-importtime-graph renders it as a browser-based treemap at kmichel.github.io. Simon Willison's example trace for his LLM CLI with 41 plugins showed a total of 2845.828 ms, with 'llm.cli' at 2256.275 ms and 'openai' at 150.043 ms; dense SVG output is zoomable.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Node graph engine that runs big diffusion models on 4GB VRAM
ComfyUI's asynchronous weight streaming lets large diffusion models run on 4GB VRAM, meaning practitioners with modest GPUs no longer need expensive hardware for local image, video and audio generation.
iCloud apps for Windows, Linux and Android, written in Rust
Skykeep gives Rust-based native iCloud apps for Windows, Linux and Android, ending the iCloud.com-browser workaround for non-Apple-device users.
An open-source video editor covering auto-captions, voice isolation and keyframes
Very little for most professionals: Concat is a free, pre-1.0 open-source video editor that makes basic auto-captions and voice isolation available on mobile and desktop without a subscription.
OpenGame: turn your local coding agent into a full-stack game studio
Developers with a local coding agent can now scaffold full playable 3D games, art, music, testing, publishing, instead of only refactoring code, opening a path from hobby coding to shippable mini-games.
A Flipper Zero CAN bus toolkit for Tesla, from $14
An open-source $14 ESP32/Flipper Zero build replicates $200+ commercial Tesla dongles at the CAN bus level, including FSD region-gate bypass and TLSSC restore, with real VIN-ban risk.