mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-28 09:13:09 -06:00
Comments
This commit is contained in:
parent
9961ff5f77
commit
69fece067a
|
|
@ -11,9 +11,15 @@ import (
|
||||||
"go.uber.org/atomic"
|
"go.uber.org/atomic"
|
||||||
)
|
)
|
||||||
|
|
||||||
const PDU_STREAM_QUEUESIZE = 2048
|
// The max number of per-room goroutines to have running.
|
||||||
|
// Too high and this will consume lots of CPU, too low and complete
|
||||||
|
// sync responses will take longer to process.
|
||||||
const PDU_STREAM_WORKERS = 256
|
const PDU_STREAM_WORKERS = 256
|
||||||
|
|
||||||
|
// The maximum number of tasks that can be queued in total before
|
||||||
|
// backpressure will build up and the rests will start to block.
|
||||||
|
const PDU_STREAM_QUEUESIZE = PDU_STREAM_WORKERS * 8
|
||||||
|
|
||||||
type PDUStreamProvider struct {
|
type PDUStreamProvider struct {
|
||||||
StreamProvider
|
StreamProvider
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue