An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 改进内核任务调度机制提升稳定性 https://github.com/siyuan-note/siyuan/issues/7113
Liang Ding13e6ff855784
diff --git a/kernel/sql/queue.go b/kernel/sql/queue.goindex df9cfe9f2c..c8528f850a 100644--- a/kernel/sql/queue.go+++ b/kernel/sql/queue.go@@ -128,11 +128,15 @@ func FlushQueue() {return}- if 16 < i && 0 == i%256 {+ if 16 < i && 0 == i%128 {runtime.GC()}}+ if 128 < len(ops) {+ runtime.GC()+ }+elapsed := time.Now().Sub(start).Milliseconds()if 5000 < elapsed {logging.LogInfof("op tx [%dms]", elapsed)