mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-11 23:22:33 +01:00
⚡ Improve pasting performance for large amounts of content https://github.com/siyuan-note/siyuan/issues/15306
This commit is contained in:
parent
9d392bd663
commit
7c692e8273
4 changed files with 362 additions and 187 deletions
|
|
@ -764,6 +764,11 @@ func loadNodesByStartEnd(tree *parse.Tree, startID, endID string) (nodes []*ast.
|
|||
}
|
||||
break
|
||||
}
|
||||
|
||||
if len(nodes) >= Conf.Editor.DynamicLoadBlocks {
|
||||
// 如果加载到指定数量的块则停止加载
|
||||
break
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue