Skip to content

Conversation

@tomwhite
Copy link
Member

The changes here take import cubed in a fresh venv from ~5s to ~3s.

Screenshot 2026-01-20 at 16 45 51
time PYTHONPROFILEIMPORTTIME=1 uv run --reinstall import-cubed.py 2> import.log
uvx tuna import.log 

Contents of import-cubed.py:

# /// script
# requires-python = ">=3.12"
# dependencies = [
#     "cubed @ /Users/tom/workspace/cubed",
# ]
# ///
import cubed

@tomwhite tomwhite merged commit 42181d3 into main Jan 21, 2026
20 of 21 checks passed
@tomwhite tomwhite deleted the slow-import-improvements branch January 21, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants