Updates for ace performance related to new searchinfiles work
This commit is contained in:
parent
c4cb541414
commit
69c8f6615d
3 changed files with 20 additions and 3 deletions
|
|
@ -327,8 +327,13 @@ var Document = function(text) {
|
|||
return {row: row, column: 0};
|
||||
|
||||
var args = [row, 0];
|
||||
args.push.apply(args, lines);
|
||||
var step = 100000;
|
||||
var l = Math.ceil(lines.length / step);
|
||||
for (var tlines, i = 0; i < l; i++) {
|
||||
tlines = lines.slice(i * step, step);
|
||||
args.push.apply(args, tlines);
|
||||
this.$lines.splice.apply(this.$lines, args);
|
||||
}
|
||||
|
||||
var range = new Range(row, 0, row + lines.length, 0);
|
||||
var delta = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue