Skip to content

Instantly share code, notes, and snippets.

@jlmelville
Last active November 27, 2025 18:06
Show Gist options
  • Select an option

  • Save jlmelville/e288fe8b85e3694167fd10a7bb9be13f to your computer and use it in GitHub Desktop.

Select an option

Save jlmelville/e288fe8b85e3694167fd10a7bb9be13f to your computer and use it in GitHub Desktop.
profiling python import time: i.e. why does it take so long to import my modules?
UV_CACHE_DIR=.uv-cache uv run python -X importtime -c "import <your import-here>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment