🎨 Enlarge cache size

This commit is contained in:
Daniel 2023-12-08 23:15:13 +08:00
parent a2bae98316
commit af02b4dbea
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 6 additions and 6 deletions

8
kernel/cache/ial.go vendored
View file

@ -24,8 +24,8 @@ import (
) )
var docIALCache, _ = ristretto.NewCache(&ristretto.Config{ var docIALCache, _ = ristretto.NewCache(&ristretto.Config{
NumCounters: 10240, NumCounters: 102400,
MaxCost: 1024, MaxCost: 10240,
BufferItems: 64, BufferItems: 64,
}) })
@ -55,8 +55,8 @@ func ClearDocsIAL() {
} }
var blockIALCache, _ = ristretto.NewCache(&ristretto.Config{ var blockIALCache, _ = ristretto.NewCache(&ristretto.Config{
NumCounters: 10240, NumCounters: 102400,
MaxCost: 1024, MaxCost: 10240,
BufferItems: 64, BufferItems: 64,
}) })

View file

@ -38,8 +38,8 @@ func disableCache() {
} }
var blockCache, _ = ristretto.NewCache(&ristretto.Config{ var blockCache, _ = ristretto.NewCache(&ristretto.Config{
NumCounters: 10240, NumCounters: 102400,
MaxCost: 1024, MaxCost: 10240,
BufferItems: 64, BufferItems: 64,
}) })