Skip to content

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

:zap: Improve document tree expansion and database loading performance https://github.com/siyuan-note/siyuan/issues/12428

Daniel3632718839a5
diff --git a/kernel/model/file.go b/kernel/model/file.go
index f2e7207216..3f67730aa9 100644
--- a/kernel/model/file.go
+++ b/kernel/model/file.go
@@ -252,12 +252,6 @@ func ListDocTree(boxID, listPath string, sortMode int, flashcard, showHidden boo
//pprof.StartCPUProfile(cpuProfile)
//defer pprof.StopCPUProfile()
- start1 := time.Now()
- defer func() {
- elapsed := time.Now().Sub(start1).Milliseconds()
- logging.LogInfof("list doc tree elapsed [%dms]", elapsed)
- }()
-
ret = []*File{}
var deck *riff.Deck