Ver código fonte

:zap: 改进打开虚拟引用后加载文档的性能 https://github.com/siyuan-note/siyuan/issues/7378

Liang Ding 2 anos atrás
pai
commit
52faf594eb
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      kernel/model/virutalref.go

+ 2 - 2
kernel/model/virutalref.go

@@ -35,8 +35,8 @@ import (
 // virtualBlockRefCache 用于保存块关联的虚拟引用关键字。
 // virtualBlockRefCache 用于保存块关联的虚拟引用关键字。
 // 改进打开虚拟引用后加载文档的性能 https://github.com/siyuan-note/siyuan/issues/7378
 // 改进打开虚拟引用后加载文档的性能 https://github.com/siyuan-note/siyuan/issues/7378
 var virtualBlockRefCache, _ = ristretto.NewCache(&ristretto.Config{
 var virtualBlockRefCache, _ = ristretto.NewCache(&ristretto.Config{
-	NumCounters: 1024000,
-	MaxCost:     102400,
+	NumCounters: 102400,
+	MaxCost:     10240,
 	BufferItems: 64,
 	BufferItems: 64,
 })
 })