Skip to content

Commit

Permalink
🎨 Enlarge cache size
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Dec 8, 2023
1 parent a2bae98 commit af02b4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions kernel/cache/ial.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
)

var docIALCache, _ = ristretto.NewCache(&ristretto.Config{
NumCounters: 10240,
MaxCost: 1024,
NumCounters: 102400,
MaxCost: 10240,
BufferItems: 64,
})

Expand Down Expand Up @@ -55,8 +55,8 @@ func ClearDocsIAL() {
}

var blockIALCache, _ = ristretto.NewCache(&ristretto.Config{
NumCounters: 10240,
MaxCost: 1024,
NumCounters: 102400,
MaxCost: 10240,
BufferItems: 64,
})

Expand Down
4 changes: 2 additions & 2 deletions kernel/sql/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ func disableCache() {
}

var blockCache, _ = ristretto.NewCache(&ristretto.Config{
NumCounters: 10240,
MaxCost: 1024,
NumCounters: 102400,
MaxCost: 10240,
BufferItems: 64,
})

Expand Down

0 comments on commit af02b4d

Please sign in to comment.