summaryrefslogtreecommitdiffstats
path: root/src/constants.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-04-01 23:38:46 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-04-01 23:38:46 +0900
commit41b3511ad9a885504a41eb4292fbceeba86e56f0 (patch)
tree02385f62c100e38bffd7f1bb44b979e98fa92761 /src/constants.go
parent128e4a2e8d9f57373182cad64fb69e33fb20e0ee (diff)
Improve ingestion performance (by around 20%)
Diffstat (limited to 'src/constants.go')
-rw-r--r--src/constants.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/constants.go b/src/constants.go
index f5f8a939..faf6a0e5 100644
--- a/src/constants.go
+++ b/src/constants.go
@@ -14,6 +14,7 @@ const (
// Reader
readerBufferSize = 64 * 1024
+ readerSlabSize = 128 * 1024
readerPollIntervalMin = 10 * time.Millisecond
readerPollIntervalStep = 5 * time.Millisecond
readerPollIntervalMax = 50 * time.Millisecond