mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
🎨 内核垃圾回收
This commit is contained in:
parent
eea6c9468a
commit
74e7ecd5a5
8 changed files with 17 additions and 13 deletions
|
|
@ -25,7 +25,7 @@ import (
|
|||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"runtime/debug"
|
||||
"sort"
|
||||
"strings"
|
||||
"sync"
|
||||
|
|
@ -517,7 +517,7 @@ func fullReindex() {
|
|||
sql.EnableCache()
|
||||
treenode.SaveBlockTree(true)
|
||||
LoadFlashcards()
|
||||
runtime.GC()
|
||||
debug.FreeOSMemory()
|
||||
go func() {
|
||||
time.Sleep(3 * time.Second)
|
||||
util.PushClearMsg(msgId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue