⬆️ Upgrade kernel deps

This commit is contained in:
Daniel 2025-04-25 12:21:24 +08:00
parent 3ba3d3e63d
commit 76b876ba3c
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 13 additions and 13 deletions

View file

@ -38,7 +38,7 @@ import (
// virtualBlockRefCache 用于保存块关联的虚拟引用关键字。
// 改进打开虚拟引用后加载文档的性能 https://github.com/siyuan-note/siyuan/issues/7378
var virtualBlockRefCache, _ = ristretto.NewCache[string, []string](&ristretto.Config[string, []string]{
var virtualBlockRefCache, _ = ristretto.NewCache(&ristretto.Config{
NumCounters: 102400,
MaxCost: 10240,
BufferItems: 64,
@ -61,7 +61,7 @@ func getBlockVirtualRefKeywords(root *ast.Node) (ret []string) {
ret = putBlockVirtualRefKeywords(content, root)
return
}
ret = val
ret = val.([]string)
return
}
@ -217,7 +217,7 @@ func getVirtualRefKeywords(root *ast.Node) (ret []string) {
}
if val, ok := virtualBlockRefCache.Get("virtual_ref"); ok {
ret = val
ret = val.([]string)
}
if "" != strings.TrimSpace(Conf.Editor.VirtualBlockRefInclude) {