We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a5cf7a commit 794dd17Copy full SHA for 794dd17
pkg/storage/bucket/rate_limited_reader.go
@@ -16,7 +16,10 @@ import (
16
17
// minReadSize is the minimum chunk size for reading data.
18
// This ensures we read in reasonable-sized batches rather than very small ones.
19
-const minReadSize = 512
+// For typical 1-2MB objects (most of our chunks), 64KB provides a good balance between efficiency
20
+// and rate limiting responsiveness.
21
+// E.g. for 2MB object, 64KB read size is 32 reads, which is reasonable.
22
+const minReadSize = 64 * 1024 // 64KB
23
24
type rateLimiterKey struct{}
25
0 commit comments