File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -133,12 +133,14 @@ type Options struct {
133
133
134
134
// ReadBufferSize is the size of the bufio.Reader buffer for each connection.
135
135
// Larger buffers can improve performance for commands that return large responses.
136
+ // Smaller buffers can improve memory usage for larger pools.
136
137
//
137
138
// default: 0.5MiB (524288 bytes)
138
139
ReadBufferSize int
139
140
140
141
// WriteBufferSize is the size of the bufio.Writer buffer for each connection.
141
142
// Larger buffers can improve performance for large pipelines and commands with many arguments.
143
+ // Smaller buffers can improve memory usage for larger pools.
142
144
//
143
145
// default: 0.5MiB (524288 bytes)
144
146
WriteBufferSize int
Original file line number Diff line number Diff line change @@ -94,12 +94,14 @@ type ClusterOptions struct {
94
94
95
95
// ReadBufferSize is the size of the bufio.Reader buffer for each connection.
96
96
// Larger buffers can improve performance for commands that return large responses.
97
+ // Smaller buffers can improve memory usage for larger pools.
97
98
//
98
99
// default: 0.5MiB (524288 bytes)
99
100
ReadBufferSize int
100
101
101
102
// WriteBufferSize is the size of the bufio.Writer buffer for each connection.
102
103
// Larger buffers can improve performance for large pipelines and commands with many arguments.
104
+ // Smaller buffers can improve memory usage for larger pools.
103
105
//
104
106
// default: 0.5MiB (524288 bytes)
105
107
WriteBufferSize int
Original file line number Diff line number Diff line change @@ -116,12 +116,14 @@ type RingOptions struct {
116
116
117
117
// ReadBufferSize is the size of the bufio.Reader buffer for each connection.
118
118
// Larger buffers can improve performance for commands that return large responses.
119
+ // Smaller buffers can improve memory usage for larger pools.
119
120
//
120
121
// default: 0.5MiB (524288 bytes)
121
122
ReadBufferSize int
122
123
123
124
// WriteBufferSize is the size of the bufio.Writer buffer for each connection.
124
125
// Larger buffers can improve performance for large pipelines and commands with many arguments.
126
+ // Smaller buffers can improve memory usage for larger pools.
125
127
//
126
128
// default: 0.5MiB (524288 bytes)
127
129
WriteBufferSize int
You can’t perform that action at this time.
0 commit comments