mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Enlarge cache size
This commit is contained in:
8
kernel/cache/ial.go
vendored
8
kernel/cache/ial.go
vendored
@@ -24,8 +24,8 @@ import (
|
||||
)
|
||||
|
||||
var docIALCache, _ = ristretto.NewCache(&ristretto.Config{
|
||||
NumCounters: 10240,
|
||||
MaxCost: 1024,
|
||||
NumCounters: 102400,
|
||||
MaxCost: 10240,
|
||||
BufferItems: 64,
|
||||
})
|
||||
|
||||
@@ -55,8 +55,8 @@ func ClearDocsIAL() {
|
||||
}
|
||||
|
||||
var blockIALCache, _ = ristretto.NewCache(&ristretto.Config{
|
||||
NumCounters: 10240,
|
||||
MaxCost: 1024,
|
||||
NumCounters: 102400,
|
||||
MaxCost: 10240,
|
||||
BufferItems: 64,
|
||||
})
|
||||
|
||||
|
||||
@@ -38,8 +38,8 @@ func disableCache() {
|
||||
}
|
||||
|
||||
var blockCache, _ = ristretto.NewCache(&ristretto.Config{
|
||||
NumCounters: 10240,
|
||||
MaxCost: 1024,
|
||||
NumCounters: 102400,
|
||||
MaxCost: 10240,
|
||||
BufferItems: 64,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user