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/5200

Liang Ding3e16710b8715
diff --git a/kernel/model/assets.go b/kernel/model/assets.go
index 3f38f8ddf5..138e92e8f3 100644
--- a/kernel/model/assets.go
+++ b/kernel/model/assets.go
@@ -451,7 +451,7 @@ func UnusedAssets() (ret []string) {
dests := map[string]bool{}
// 分页加载,优化清理未引用资源内存占用 https://github.com/siyuan-note/siyuan/issues/5200
- pages := pagedPaths(filepath.Join(util.DataDir, notebook.ID), 20)
+ pages := pagedPaths(filepath.Join(util.DataDir, notebook.ID), 32)
for _, paths := range pages {
var trees []*parse.Tree
for _, localPath := range paths {