mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Enlarge cache size
This commit is contained in:
parent
a2bae98316
commit
af02b4dbea
2 changed files with 6 additions and 6 deletions
8
kernel/cache/ial.go
vendored
8
kernel/cache/ial.go
vendored
|
|
@ -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,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue