-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
performancePotential performance improvementPotential performance improvement
Description
Given this pyproject.toml, we spend ~38% of resolver thread time in without_extras
Hot code paths:
uv/crates/uv-resolver/src/candidate_selector.rs
Lines 181 to 185 in 0d57d29
| // In the branches, we "sort" the preferences by marker-matching through an iterator that | |
| // first has the matching half and then the mismatching half. | |
| let preferences_match = preferences | |
| .get(package_name) | |
| .filter(|(marker, _index, _version)| env.included_by_marker(marker.pep508())); |
uv/crates/uv-pep508/src/marker/tree.rs
Line 1143 in bec8468
| MarkerTree(INTERNER.lock().without_extras(self.0)) |
Profiling command, on ubuntu 24.04:
cargo build --profile profiling
rm -f uv.lock
samply record --rate 20000 target/profiling/uv lock -p 3.12
We should improve the performance for lerobot.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
performancePotential performance improvementPotential performance improvement
