Avatar for the pubgrub-rs user
pubgrub-rs
pubgrub
BlogDocsChangelog

Add `State::add_incompatibility_from_dependencies` (#27)

#300Merged
Comparing
konsti/dev/add-incompat-for-deps
(
8685610
) with
dev
(
3bef331
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
6
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

sudoku-easy
benches/sudoku.rs::benches::bench_solve::sudoku-easy
CodSpeed Performance Gauge
0%
3.9 ms
3.9 ms
sudoku-hard
benches/sudoku.rs::benches::bench_solve::sudoku-hard
CodSpeed Performance Gauge
0%
4.2 ms
4.2 ms
backtracking_singletons
benches/backtracking.rs::benches::bench_group::backtracking_singletons
CodSpeed Performance Gauge
0%
4.4 s
4.4 s
backtracking_ranges
benches/backtracking.rs::benches::bench_group::backtracking_ranges
CodSpeed Performance Gauge
0%
2 s
2 s
backtracking_disjoint_versions
benches/backtracking.rs::benches::bench_group::backtracking_disjoint_versions
CodSpeed Performance Gauge
0%
2.4 s
2.4 s
large_case_u16_NumberVersion.ron
benches/large_case.rs::benches::bench_nested::large_cases::large_case_u16_NumberVersion.ron
CodSpeed Performance Gauge
0%
25.6 ms
25.7 ms

Commits

Click on a commit to change the comparison range
Base
dev
3bef331
0%
Add `State::add_incompatibility_from_dependencies` (#27) This wrapper avoids accessing the `incompatibility_store` directly in uv code. Before: ```rust let dep_incompats = self.pubgrub.add_version( package.clone(), version.clone(), dependencies, ); self.pubgrub.partial_solution.add_version( package.clone(), version.clone(), dep_incompats, &self.pubgrub.incompatibility_store, ); ``` After: ```rust self.pubgrub.add_incompatibility_from_dependencies(package.clone(), version.clone(), dependencies); ``` `add_incompatibility_from_dependencies` is one of the main methods for the custom interface to pubgrub.
8685610
6 months ago
by konstin
Home Terms PrivacyDocs