Ver Fonte

:art: Enlarge cache size

Daniel há 1 ano atrás
pai
commit
af02b4dbea
2 ficheiros alterados com 6 adições e 6 exclusões
  1. 4 4
      kernel/cache/ial.go
  2. 2 2
      kernel/sql/cache.go

+ 4 - 4
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,
 })
 

+ 2 - 2
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,
 })