astral-sh
uv
BlogDocsChangelog

Don't revalidate Python interpreter cache entry with `--upgrade`

#10361Closed
Comparing
konsti/dont-revalidate-python
(
1cd6a12
) with
main
(
3dc481b
)
CodSpeed Performance Gauge
-1%
Untouched
14

Benchmarks

Passed

resolve_warm_jupyter_universal
crates/uv-bench/benches/uv.rs::uv::resolve_warm_jupyter_universal
CodSpeed Performance Gauge
+1%
271.8 ms269.5 ms
resolve_warm_airflow
crates/uv-bench/benches/uv.rs::uv::resolve_warm_airflow
CodSpeed Performance Gauge
0%
1.4 s1.4 s
resolve_warm_jupyter
crates/uv-bench/benches/uv.rs::uv::resolve_warm_jupyter
CodSpeed Performance Gauge
0%
96.8 ms96.8 ms
build_platform_tags[burntsushi-archlinux]
crates/uv-bench/benches/distribution_filename.rs::uv_distribution_filename::benchmark_build_platform_tags
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
wheelname_parsing[flyte-long-compatible]
crates/uv-bench/benches/distribution_filename.rs::uv_distribution_filename::benchmark_wheelname_parsing
CodSpeed Performance Gauge
0%
10.2 µs10.2 µs
wheelname_parsing_failure[flyte-long-extension]
crates/uv-bench/benches/distribution_filename.rs::uv_distribution_filename::benchmark_wheelname_parsing_failure
CodSpeed Performance Gauge
0%
1.8 µs1.8 µs
wheelname_parsing[flyte-long-incompatible]
crates/uv-bench/benches/distribution_filename.rs::uv_distribution_filename::benchmark_wheelname_parsing
CodSpeed Performance Gauge
0%
13.8 µs13.8 µs
wheelname_parsing_failure[flyte-short-extension]
crates/uv-bench/benches/distribution_filename.rs::uv_distribution_filename::benchmark_wheelname_parsing_failure
CodSpeed Performance Gauge
0%
1.9 µs1.9 µs
wheelname_parsing[flyte-short-incompatible]
crates/uv-bench/benches/distribution_filename.rs::uv_distribution_filename::benchmark_wheelname_parsing
CodSpeed Performance Gauge
0%
6.3 µs6.3 µs
wheelname_parsing[flyte-short-compatible]
crates/uv-bench/benches/distribution_filename.rs::uv_distribution_filename::benchmark_wheelname_parsing
CodSpeed Performance Gauge
0%
6.2 µs6.2 µs
wheelname_tag_compatibility[flyte-short-incompatible]
crates/uv-bench/benches/distribution_filename.rs::uv_distribution_filename::benchmark_wheelname_tag_compatibility
CodSpeed Performance Gauge
-3%
1 µs1 µs
wheelname_tag_compatibility[flyte-long-compatible]
crates/uv-bench/benches/distribution_filename.rs::uv_distribution_filename::benchmark_wheelname_tag_compatibility
CodSpeed Performance Gauge
-3%
2 µs2.1 µs
wheelname_tag_compatibility[flyte-short-compatible]
crates/uv-bench/benches/distribution_filename.rs::uv_distribution_filename::benchmark_wheelname_tag_compatibility
CodSpeed Performance Gauge
-3%
2 µs2.1 µs
wheelname_tag_compatibility[flyte-long-incompatible]
crates/uv-bench/benches/distribution_filename.rs::uv_distribution_filename::benchmark_wheelname_tag_compatibility
CodSpeed Performance Gauge
-4%
1.4 µs1.5 µs

Commits

Click on a commit to change the comparison range
Base
main
3dc481b
-0.89%
Don't revalidate Python cache entry with `--upgrade` We were always revalidating the Python cache entry when using `--upgrade`, since the cache timestamp is too recent. Instead, we ignore the usual caching semantics for packages and only compare the timestamp of the interpreter with the recorded timestamp. This avoids the cost for querying the Python interpreter, and the expense of being slightly inconsistent with `Cache` behaving different for python alone (which is imho acceptable since interpreter metadata is already different from package metadata).
1cd6a12
10 months ago
by konstin
© 2025 CodSpeed Technology
Home Terms Privacy Docs