mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-16 00:00:12 +02:00
time: add alternative timer for better multicore scalability (#7467)
This change introduces per-worker timer wheels in the time subsystem to reduce the lock contention. Key changes: - Each worker now maintains a local timer wheel. - Timer insertions are performed locally. - Timer cancellations are forwarded via a dedicated cross-worker cancellation queue. Relevant RFC: https://github.com/tokio-rs/tokio/issues/7384 --------- Signed-off-by: ADD-SP <[email protected]>
This commit is contained in:
@@ -1058,6 +1058,7 @@ jobs:
|
||||
CARGO_TARGET_WASM32_WASIP1_RUNNER: "wasmtime run --"
|
||||
CARGO_TARGET_WASM32_WASIP1_THREADS_RUNNER: "wasmtime run -W bulk-memory=y -W threads=y -S threads=y --"
|
||||
RUSTFLAGS: --cfg tokio_unstable -Dwarnings -C target-feature=+atomics,+bulk-memory -C link-args=--max-memory=67108864
|
||||
RUSTDOCFLAGS: -C link-args=--max-memory=67108864
|
||||
|
||||
- name: WASI test tokio-stream
|
||||
run: cargo test -p tokio-stream --target ${{ matrix.target }} --features time,net,io-util,sync
|
||||
|
||||
@@ -52,7 +52,7 @@ jobs:
|
||||
toolchain: ${{ env.rust_stable }}
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: run tests
|
||||
run: cargo test --lib --release --features full -- --nocapture runtime::time::tests
|
||||
run: cargo test --lib --release --features full -- --nocapture runtime::time
|
||||
working-directory: tokio
|
||||
|
||||
loom-current-thread:
|
||||
|
||||
Reference in New Issue
Block a user