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

This commit is contained in:
Daniel 2024-09-10 00:15:22 +08:00
parent d131965636
commit 3632718839
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

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