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

fix small bug in backoff update #1586

Merged

Conversation

yellowhatter
Copy link
Contributor

No description provided.

@yellowhatter yellowhatter added bug Something isn't working internal Changes not included in the changelog labels Nov 6, 2024
@yellowhatter yellowhatter requested a review from Mallets November 6, 2024 17:43
@yellowhatter
Copy link
Contributor Author

@Mallets I fixed it by forcing operand evaluation order that makes it impossible to have negative values. Maybe this is the fastest approach (I will run zenoh benchmarks for this)

@yellowhatter yellowhatter marked this pull request as draft November 6, 2024 17:48
@yellowhatter yellowhatter mentioned this pull request Nov 6, 2024
@yellowhatter
Copy link
Contributor Author

yellowhatter commented Nov 7, 2024

@Mallets A very promising result!!!

This branch:
2024:11:07-18:46:38 throughput aggregated

Main:
2024:11:07-19:56:12 throughput aggregated

I think this is because we don't have additional overflow check when doing (-i32)+i32 arithmetic operation because it cannot overflow.

@yellowhatter yellowhatter marked this pull request as ready for review November 7, 2024 17:32
@yellowhatter yellowhatter added the release Part of the next release label Nov 8, 2024
@yellowhatter
Copy link
Contributor Author

additional slight improvement:
2024:11:08-17:10:06 throughput aggregated

@yellowhatter yellowhatter merged commit da11732 into eclipse-zenoh:main Nov 8, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working internal Changes not included in the changelog release Part of the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants