Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up parse_header of the binary IndexData #235

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

marxin
Copy link
Contributor

@marxin marxin commented Jul 17, 2024

The change makes a measurable performance gain for debuginfod-rs:

Before:
  Time (mean ± σ):      2.322 s ±  0.042 s    [User: 25.047 s, System: 4.994 s]
After:
  Time (mean ± σ):      2.269 s ±  0.023 s    [User: 24.264 s, System: 5.174 s]

1.02 ± 0.02 times faster than debuginfod-rs-before

The change makes a measurable performance gain for debuginfod-rs:

```
Before:
  Time (mean ± σ):      2.322 s ±  0.042 s    [User: 25.047 s, System: 4.994 s]
After:
  Time (mean ± σ):      2.269 s ±  0.023 s    [User: 24.264 s, System: 5.174 s]

1.02 ± 0.02 times faster than debuginfod-rs-before
```
Copy link
Collaborator

@dralley dralley left a comment

Choose a reason for hiding this comment

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

Please add a basic ### Changed changelog entry stating that some optimizations were performed, no need to go into detail

@marxin
Copy link
Contributor Author

marxin commented Jul 17, 2024

Good point, I've just added that.

@dralley dralley merged commit a73238f into rpm-rs:master Jul 17, 2024
15 checks passed
@marxin marxin deleted the speed-up-parse_header branch July 18, 2024 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants