Skip to content

time: revert "use sharding for timer implementation" related changes #7226

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

Merged
merged 3 commits into from
May 5, 2025

Conversation

carllerche
Copy link
Member

The work on sharding the timer implementation has caused a measurable performance regression due to increased contention.

This is a work-in-progress. I am posting the PR early to get CI to run.

…hanges

The work related to sharding the timer implementation has caused a measurable performance regression due to increased contention.
@github-actions github-actions bot added R-loom-multi-thread Run loom multi-thread tests on this PR R-loom-multi-thread-alt R-loom-time-driver Run loom time driver tests on this PR labels Mar 17, 2025
@Darksonn Darksonn added A-tokio Area: The main tokio crate M-time Module: tokio/time labels Mar 17, 2025
@carllerche carllerche marked this pull request as ready for review May 5, 2025 16:13
@carllerche carllerche merged commit 1ae9434 into master May 5, 2025
91 checks passed
@carllerche carllerche deleted the revert-timer-sharding branch May 5, 2025 17:48
kodiakhq bot pushed a commit to pdylanross/fatigue that referenced this pull request May 6, 2025
Bumps tokio from 1.44.2 to 1.45.0.

Release notes
Sourced from tokio's releases.

Tokio v1.45.0
Added

metrics: stabilize worker_total_busy_duration, worker_park_count, and worker_unpark_count (#6899, #7276)
process: add Command::spawn_with (#7249)

Changed

io: do not require Unpin for some trait impls (#7204)
rt: mark runtime::Handle as unwind safe (#7230)
time: revert internal sharding implementation (#7226)

Unstable

rt: remove alt multi-threaded runtime (#7275)

#6899: tokio-rs/tokio#6899
#7276: tokio-rs/tokio#7276
#7249: tokio-rs/tokio#7249
#7204: tokio-rs/tokio#7204
#7230: tokio-rs/tokio#7230
#7226: tokio-rs/tokio#7226
#7275: tokio-rs/tokio#7275



Commits

00754c8 chore: prepare Tokio v1.45.0 (#7308)
1ae9434 time: revert "use sharding for timer implementation" related changes (#7226)
8895bba ci: Test AArch64 Windows (#7288)
48ca254 time: update sleep documentation to reflect maximum allowed duration (#7302)
a0af02a compat: add more documentation to tokio_util::compat (#7279)
0ce3a11 metrics: stabilize worker_park_count and worker_unpark_count (#7276)
1ea9ce1 ci: fix cfg!(miri) declarations in tests (#7286)
4d4d126 chore: prepare tokio-util v0.7.15 (#7283)
5490267 fs: update the mockall dev dependency to 0.13.0 (#7234)
1434b32 examples: improve echo example consistency (#7256)
Additional commits viewable in compare view




Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot merge will merge this PR after your CI passes on it
@dependabot squash and merge will squash and merge this PR after your CI passes on it
@dependabot cancel merge will cancel a previously requested merge and block automerging
@dependabot reopen will reopen this PR if it is closed
@dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
@dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
@dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-time Module: tokio/time R-loom-multi-thread Run loom multi-thread tests on this PR R-loom-time-driver Run loom time driver tests on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy