Repository navigation
Commit e126ea3
committed
Implement workspace-level caching
After this change, we read each `pyproject.toml` exactly once for `uv run python` in airflow.
It's ~1.9x faster for `uv run python -V` in airflow (ignoring the one uncacheable wheel with `--offline`):
```
$ hyperfine "uv-branch run --offline python -V" "uv-main run --offline python -V" --warmup 3
Benchmark 1: uv-branch run --offline python -V
Time (mean ± σ): 84.3 ms ± 3.2 ms [User: 58.3 ms, System: 25.8 ms]
Range (min … max): 80.8 ms … 98.2 ms 34 runs
Benchmark 2: uv-main run --offline python -V
Time (mean ± σ): 166.4 ms ± 2.8 ms [User: 137.6 ms, System: 28.3 ms]
Range (min … max): 162.8 ms … 172.1 ms 17 runs
Summary
uv-branch run --offline python -V ran
1.97 ± 0.08 times faster than uv run --offline python -V
```1 parent 9e61285 commit e126ea3
5 files changed
Lines changed: 183 additions & 81 deletions
File tree
- crates
- uv-workspace/src
- uv
- src/commands/project
- tests/it
0 commit comments