Improve ingestion performance (by around 20%)

This commit is contained in:
Junegunn Choi
2024-04-01 23:38:46 +09:00
parent 128e4a2e8d
commit 41b3511ad9
6 changed files with 85 additions and 23 deletions

View File

@@ -14,6 +14,7 @@ const (
// Reader
readerBufferSize = 64 * 1024
readerSlabSize = 128 * 1024
readerPollIntervalMin = 10 * time.Millisecond
readerPollIntervalStep = 5 * time.Millisecond
readerPollIntervalMax = 50 * time.Millisecond