mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 改进内核任务调度机制提升稳定性 https://github.com/siyuan-note/siyuan/issues/7113
This commit is contained in:
parent
3c79a226be
commit
f8ef5639c0
12 changed files with 40 additions and 29 deletions
|
|
@ -17,7 +17,7 @@
|
|||
package sql
|
||||
|
||||
import (
|
||||
"runtime/debug"
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
"github.com/88250/lute/ast"
|
||||
|
|
@ -45,7 +45,7 @@ func DisableCache() {
|
|||
|
||||
func ClearBlockCache() {
|
||||
memCache.Clear()
|
||||
debug.FreeOSMemory()
|
||||
runtime.GC()
|
||||
}
|
||||
|
||||
func putBlockCache(block *Block) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue