mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-05 17:25:48 +02:00
sender_workers scaling. this time, with feeling!
This commit is contained in:
parent
2e80200c64
commit
1f1cde297d
1 changed files with 3 additions and 3 deletions
|
@ -1839,9 +1839,9 @@ pub struct Config {
|
|||
pub stream_amplification: usize,
|
||||
|
||||
/// Number of sender task workers; determines sender parallelism. Default is
|
||||
/// '4'. Override by setting a different value. Values clamped 1 to core count.
|
||||
/// core count. Override by setting a different value.
|
||||
///
|
||||
/// default: 4
|
||||
/// default: core count
|
||||
#[serde(default = "default_sender_workers")]
|
||||
pub sender_workers: usize,
|
||||
|
||||
|
@ -2328,7 +2328,7 @@ fn default_stream_width_scale() -> f32 { 1.0 }
|
|||
|
||||
fn default_stream_amplification() -> usize { 1024 }
|
||||
|
||||
fn default_sender_workers() -> usize { 4 }
|
||||
fn default_sender_workers() -> usize { parallelism_scaled(1) }
|
||||
|
||||
fn default_client_receive_timeout() -> u64 { 75 }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue