From af02b4dbea79236d7e02beb0203d426d33260e2a Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 8 Dec 2023 23:15:13 +0800 Subject: [PATCH] :art: Enlarge cache size --- kernel/cache/ial.go | 8 ++++---- kernel/sql/cache.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/cache/ial.go b/kernel/cache/ial.go index 8c7a7152fdb..94cc23bfe43 100644 --- a/kernel/cache/ial.go +++ b/kernel/cache/ial.go @@ -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, }) diff --git a/kernel/sql/cache.go b/kernel/sql/cache.go index cb3f84f2acf..6c106585bf5 100644 --- a/kernel/sql/cache.go +++ b/kernel/sql/cache.go @@ -38,8 +38,8 @@ func disableCache() { } var blockCache, _ = ristretto.NewCache(&ristretto.Config{ - NumCounters: 10240, - MaxCost: 1024, + NumCounters: 102400, + MaxCost: 10240, BufferItems: 64, })