Skip to content

Improve Debian and RPM version comparison performance#319

Merged
nscuro merged 1 commit into
mainfrom
improve-deb-rpm-parse-perf
Jun 19, 2026
Merged

Improve Debian and RPM version comparison performance#319
nscuro merged 1 commit into
mainfrom
improve-deb-rpm-parse-perf

Conversation

@nscuro

@nscuro nscuro commented Jun 19, 2026

Copy link
Copy Markdown
Owner
  • Computes version segments eagerly after parsing so they can be reused across multiple comparisons.
  • Avoids allocations entirely in the comparison logic by avoiding regex and boxing.

@nscuro nscuro added the enhancement New feature or request label Jun 19, 2026
* Computes version segments eagerly after parsing so they can be reused across multiple comparisons.
* Avoids allocations entirely in the comparison logic by avoiding regex and boxing.

Signed-off-by: nscuro <nscuro@protonmail.com>
@nscuro nscuro force-pushed the improve-deb-rpm-parse-perf branch from 2cc93c3 to 300fe50 Compare June 19, 2026 19:10
@nscuro nscuro merged commit 9ff205f into main Jun 19, 2026
2 checks passed
@nscuro nscuro deleted the improve-deb-rpm-parse-perf branch June 19, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant