Improve pasting performance for large amounts of content https://github.com/siyuan-note/siyuan/issues/15306

This commit is contained in:
Daniel 2025-07-26 21:24:28 +08:00
parent 9d392bd663
commit 7c692e8273
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 362 additions and 187 deletions

View file

@ -764,6 +764,11 @@ func loadNodesByStartEnd(tree *parse.Tree, startID, endID string) (nodes []*ast.
}
break
}
if len(nodes) >= Conf.Editor.DynamicLoadBlocks {
// 如果加载到指定数量的块则停止加载
break
}
}
return
}