You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One simplistic idea is to create a PEP 508 marker once and store it on UniversalMarker. Then the pep508 method can just return it instead of creating it.
I think the main challenge there is just making sure it gets updated as appropriate since a UniversalMarker has &mut methods.
This strategy is predicated on the idea that marker mutation is much rarer than calling m.pep508(). I think that's probably true, but I'm not certain.
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
uv/crates/uv-pep508/src/marker/tree.rs
Line 1143 in bec8468
Profiling command, on ubuntu 24.04:
We should improve the performance for lerobot.
The text was updated successfully, but these errors were encountered: