Skip to content

Conversation

@eth3lbert
Copy link
Contributor

This changes the sorting of crate.versions. Previously, we sorted versions by semver, which is more computationally expensive compared to sorting by id/date, which can be achieved more easily directly from the database. While this change alters the sorting order, it still provides consistent output and eliminates the need for double semver sorting.

This changes the sorting of `crate.versions`. Previously, we sorted
versions by semver, which is more computationally expensive compared to
sorting by id/date, which can be achieved more easily directly from
the database. While this change alters the sorting order, it still
provides consistent output and eliminates the need for double semver
sorting.
@Turbo87 Turbo87 changed the title Tidy crate metadata Simplify versions ordering in GET /api/v1/crates/{name} endpoint Jan 3, 2025
@Turbo87 Turbo87 merged commit 8e55b04 into rust-lang:main Jan 3, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants