uv/crates/uv-resolver/src
konsti 70dad51cd9
Remove `spawn_blocking` from version map (#1966)
I previously add `spawn_blocking` to the version map construction as it
had become a bottleneck
(https://github.com/astral-sh/uv/pull/1163/files#diff-704ceeaedada99f90369eac535713ec82e19550bff166cd44745d7277ecae527R116).
With the zero copy deserialization, this has become so fast we don't
need to move it to the thread pool anymore. I've also checked
`DataWithCachePolicy` but it seems to still take a significant amount of
time. Span visualization:

Resolving jupyter warm:

![image](https://github.com/astral-sh/uv/assets/6826232/692b03da-61c5-4f96-b413-199c14aa47c4)

Resolving jupyter cold:

![image](https://github.com/astral-sh/uv/assets/6826232/a6893155-d327-40c9-a83a-7c537b7c99c4)

![image](https://github.com/astral-sh/uv/assets/6826232/213556a3-a331-42db-aaf5-bdef5e0205dd)

I've also updated the instrumentation a little.

We don't seem cpu bound for the cold cache (top) and refresh case
(bottom) from jupyter:

![image](https://github.com/astral-sh/uv/assets/6826232/cb976add-3d30-465a-a470-8490b7b6caea)

![image](https://github.com/astral-sh/uv/assets/6826232/d7ecb745-dd2d-4f91-939c-2e46b7c812dd)
2024-02-26 09:44:24 +00:00
..
pubgrub Clippy pedantic (#1963) 2024-02-25 14:04:05 -05:00
resolver Remove `spawn_blocking` from version map (#1966) 2024-02-26 09:44:24 +00:00
candidate_selector.rs Clippy pedantic (#1963) 2024-02-25 14:04:05 -05:00
constraints.rs Move conflicting dependencies into PubGrub (#1796) 2024-02-21 21:27:58 -05:00
dependency_mode.rs Rename to `uv` (#1302) 2024-02-15 11:19:46 -06:00
editables.rs Move conflicting dependencies into PubGrub (#1796) 2024-02-21 21:27:58 -05:00
error.rs Clippy pedantic (#1963) 2024-02-25 14:04:05 -05:00
finder.rs Rename to `uv` (#1302) 2024-02-15 11:19:46 -06:00
lib.rs fix: expose types to implement custom `ResolverProvider` (#1862) 2024-02-22 08:59:03 -06:00
manifest.rs Rename to `uv` (#1302) 2024-02-15 11:19:46 -06:00
options.rs Rename to `uv` (#1302) 2024-02-15 11:19:46 -06:00
overrides.rs Move conflicting dependencies into PubGrub (#1796) 2024-02-21 21:27:58 -05:00
pins.rs Rename to `uv` (#1302) 2024-02-15 11:19:46 -06:00
prerelease_mode.rs Make < exclusive for non-prerelease markers (#1878) 2024-02-24 18:02:03 -05:00
python_requirement.rs Clippy pedantic (#1963) 2024-02-25 14:04:05 -05:00
resolution.rs Add support for pip-compile's `--unsafe-package` flag (#1889) 2024-02-23 18:47:36 +00:00
resolution_mode.rs Rename to `uv` (#1302) 2024-02-15 11:19:46 -06:00
version_map.rs Clippy pedantic (#1963) 2024-02-25 14:04:05 -05:00
yanks.rs Clippy pedantic (#1963) 2024-02-25 14:04:05 -05:00