Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

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