Skip to content

Conversation

@m4tx
Copy link
Member

@m4tx m4tx commented Dec 8, 2025

This allows us to implement hot patching for the request handlers. More details: https://docs.rs/subsecond/

@github-actions github-actions bot added C-lib Crate: cot (main library crate) C-macros Crate: cot-macros labels Dec 8, 2025
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

🐰 Bencher Report

Branchsubsecond-new
Testbedgithub-ubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
microseconds (µs)
(Result Δ%)
Upper Boundary
microseconds (µs)
(Limit %)
empty_router/empty_router📈 view plot
🚷 view threshold
6,497.50 µs
(+6.86%)Baseline: 6,080.32 µs
6,818.74 µs
(95.29%)
json_api/json_api📈 view plot
🚷 view threshold
1,042.70 µs
(+1.76%)Baseline: 1,024.71 µs
1,128.68 µs
(92.38%)
nested_routers/nested_routers📈 view plot
🚷 view threshold
961.84 µs
(+1.44%)Baseline: 948.22 µs
1,040.59 µs
(92.43%)
single_root_route/single_root_route📈 view plot
🚷 view threshold
928.29 µs
(+2.23%)Baseline: 908.00 µs
994.35 µs
(93.36%)
single_root_route_burst/single_root_route_burst📈 view plot
🚷 view threshold
17,456.00 µs
(-1.64%)Baseline: 17,746.75 µs
20,805.09 µs
(83.90%)
🐰 View full continuous benchmarking report in Bencher

@m4tx m4tx force-pushed the subsecond-new branch 4 times, most recently from 80bb867 to c1cf5a6 Compare December 28, 2025 19:33
@github-actions github-actions bot added the C-cli Crate: cot-cli (issues and Pull Requests related to Cot CLI) label Dec 28, 2025
Copy link
Member

@seqre seqre left a comment

Choose a reason for hiding this comment

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

So far so good!

);
}
Err(_err) => {
tokio::time::sleep(std::time::Duration::from_millis(50)).await;
Copy link
Member

Choose a reason for hiding this comment

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

nit: please extract this magic value to properly named constant

This allows us to implement hot patching for the request handlers.
More details: https://docs.rs/subsecond/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-cli Crate: cot-cli (issues and Pull Requests related to Cot CLI) C-lib Crate: cot (main library crate) C-macros Crate: cot-macros

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants