Skip to content

Cache pyproject.toml parsing in workspace discovery#19007

Draft
konstin wants to merge 6 commits intomainfrom
konsti/simplified-workspace-caching
Draft

Cache pyproject.toml parsing in workspace discovery#19007
konstin wants to merge 6 commits intomainfrom
konsti/simplified-workspace-caching

Conversation

@konstin
Copy link
Copy Markdown
Member

@konstin konstin commented Apr 15, 2026

No description provided.

@konstin konstin added the performance Potential performance improvement label Apr 15, 2026
@konstin konstin force-pushed the konsti/simplified-workspace-caching branch from 94d4078 to c4d0c5d Compare April 15, 2026 11:43
@konstin konstin changed the title Simplified workspace caching Cache parsed pyproject.toml in workspace discovery Apr 20, 2026
@konstin konstin force-pushed the konsti/simplified-workspace-caching branch 2 times, most recently from 72bb02b to 2886470 Compare April 20, 2026 18:59
@konstin konstin changed the title Cache parsed pyproject.toml in workspace discovery Cache pyproject.toml parsing in workspace discovery Apr 20, 2026
@konstin konstin force-pushed the konsti/simplified-workspace-caching branch 2 times, most recently from ca9eef9 to 0eea6e7 Compare April 25, 2026 20:57
konstin added 4 commits April 26, 2026 01:16
This doesn't actually change workspace discovery (anymore), so we can error after discovery.
@konstin
Copy link
Copy Markdown
Member Author

konstin commented Apr 26, 2026

Unfortunately, glob walking is also slow:

image
samply record --iteration-count 10 --rate 10000 --reuse-threads ./uv-pyproject-toml-cache tree --offline --depth 1

@konstin konstin force-pushed the konsti/simplified-workspace-caching branch from 0eea6e7 to e37bddf Compare April 26, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Potential performance improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant