提交 3bf720d9 编写于 作者: J Joao Moreno

suggest: limit the lcsdiff algorithm #1923

上级 5484acdc
......@@ -948,7 +948,9 @@ export class TreeView extends HeightMap implements IScrollable {
return false;
});
if (!doToInsertItemsAlreadyExist) {
// 50 is an optimization number, at some point we're better off
// just replacing everything
if (!doToInsertItemsAlreadyExist && diff.length < 50) {
for (var i = 0, len = diff.length; i < len; i++) {
var diffChange = diff[i];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册