Skip to content

Commit cf5459d

Browse files
tuned contention parameters
1 parent 1638d94 commit cf5459d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fastcache.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import (
1212
)
1313

1414
const setBufSize = 32 * 1024
15-
const writeSizeThreshold = 250
16-
const maxDelayMillis = 3
15+
const writeSizeThreshold = 1000
16+
const maxDelayMillis = 5
1717

18-
const bucketsCount = 512
18+
const bucketsCount = 1024
1919

2020
const chunkSize = 64 * 1024
2121

0 commit comments

Comments
 (0)