I collect practical observations about Python import-time profiling and process startup, alongside my view that CGI deserves reconsideration with modern servers and fast-starting languages.
I learned about python -X importime for Python import-time profiling.
Kevin Michel's python-importtime-graph tool turns the import-time output into a handy treemap visualization.
I shared the tool at https://t.co/hk58PSOVRg.
I said CGI was ditched in the late 1990s because of per-request process overhead: starting, executing and stopping a process for every incoming request created overhead.
I argued that modern servers and fast-starting languages like Go or Rust mean “CGI isn't such a bad idea any more!”
I shared “Neat related performance tips here courtesy of Bun”.
Related: python in webassembly, python wheels and binaries, python versions and releases