Skip to content

Rank compatible wheel variants - #22536

Merged
konstin merged 3 commits into
konsti/wheel-variant-compatibilityfrom
konsti/wheel-variants-sorting
Oct 21, 2026
Merged

konstin merged 3 commits into
konsti/wheel-variant-compatibilityfrom
konsti/wheel-variants-sorting

Conversation

@konstin

@konstin konstin commented Oct 14, 2026

Copy link
Copy Markdown
Member

Rank compatible wheel variants according to PEP 825, using namespace priorities and ordered feature and value preferences. Variant labels break ties between equally ranked candidates.

The resolver currently supplies empty preferences, so only variants without properties can be selected until target compatibility data is available.

Stacked on #22535.

@codspeed

codspeed Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Merging this PR will improve performance by 5.29%

2 warnings

⚠️ Unable to measure the execution of 1 benchmark

This benchmark measured no execution time, so its result is not comparable and counts as unchanged. This usually happens when the compiler removes the code under test.

Prevent compiler optimizations

See affected benchmarks

⚠️ 8 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

⚡ 1 improved benchmark
✅ 118 untouched benchmarks
⏩ 54 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ Walltime git_fetch_revision_history[django/10] 8.7 s 8.2 s +5.29%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing konsti/wheel-variants-sorting (d9ed4be) with konsti/wheel-variant-compatibility (19556e6)

Open in CodSpeed

Footnotes

  1. 54 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@konstin
konstin force-pushed the konsti/wheel-variants-sorting branch from d1e93e7 to 1a4a999 Compare October 14, 2026 12:37
@konstin
konstin force-pushed the konsti/wheel-variants-sorting branch from 1a4a999 to d87efd4 Compare October 15, 2026 07:53
@konstin
konstin force-pushed the konsti/wheel-variants-sorting branch from d87efd4 to 84193fb Compare October 15, 2026 12:45
@konstin
konstin force-pushed the konsti/wheel-variants-sorting branch from 84193fb to 3ebb86a Compare October 16, 2026 12:04
@konstin
konstin force-pushed the konsti/wheel-variants-sorting branch from 3ebb86a to 7280021 Compare October 16, 2026 12:53
@konstin
konstin force-pushed the konsti/wheel-variants-sorting branch from 7280021 to b8f1297 Compare October 16, 2026 13:01
@konstin
konstin force-pushed the konsti/wheel-variants-sorting branch from b8f1297 to f1d60b1 Compare October 18, 2026 10:38
@konstin
konstin force-pushed the konsti/wheel-variants-sorting branch from f1d60b1 to 1407e18 Compare October 18, 2026 12:51
@konstin
konstin force-pushed the konsti/wheel-variants-sorting branch from 1407e18 to fb4dfa1 Compare October 18, 2026 13:24
@konstin
konstin added this pull request to stack #22757 October 20, 2026 11:05
@konstin
konstin force-pushed the konsti/wheel-variants-sorting branch from 1a85902 to 57cd56b Compare October 20, 2026 11:18
@konstin
konstin force-pushed the konsti/wheel-variants-sorting branch from 57cd56b to 876b530 Compare October 20, 2026 11:29
@konstin
konstin force-pushed the konsti/wheel-variants-sorting branch from 876b530 to 408b416 Compare October 20, 2026 11:39
Comment on lines +49 to +50
properties: Vec<Reverse<(usize, usize, usize)>>,
label: Reverse<VariantLabel>,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL about Reverse<T>. Kinda cool, not sure i love it :D

This branch was previously deployed

1 inactive deployment
automations — d9ed4be0 Deployed Oct 21, 2026 by konstin via review / security review #52062
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview Experimental behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants