优化清理未引用资源内存占用 https://github.com/siyuan-note/siyuan/issues/5200

This commit is contained in:
Liang Ding 2022-06-16 15:10:55 +08:00
parent cef4cc2e3f
commit 3e16710b87
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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 {