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

Optimize for timer timeout extension #184

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cmeissl
Copy link

@cmeissl cmeissl commented May 17, 2024

No description provided.

@notgull
Copy link
Member

notgull commented May 19, 2024

@cmeissl The CI issues are fixed on master, please rebase

add benchmarks specifically targeting the use-case
of extending a timer by removing and re-registering
in case we constantly extend the same timer the
head might already point to the timer we want
to cancel. in this case we can directly remove the
timer to reduce building up the heap unnecessarily.
it is more likely an older timeout gets canceled
and replaced. reversing the search might yield
some performance improvement in this case
@notgull
Copy link
Member

notgull commented Jun 1, 2024

@cmeissl try again

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.

None yet

2 participants