🎨 内核垃圾回收

This commit is contained in:
Liang Ding 2023-02-04 14:58:35 +08:00
parent eea6c9468a
commit 74e7ecd5a5
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
8 changed files with 17 additions and 13 deletions

View file

@ -17,7 +17,7 @@
package sql
import (
"runtime"
"runtime/debug"
"time"
"github.com/88250/lute/ast"
@ -45,7 +45,7 @@ func DisableCache() {
func ClearBlockCache() {
memCache.Clear()
runtime.GC()
debug.FreeOSMemory()
}
func putBlockCache(block *Block) {