Skip to content

Commit 0ea3a22

Browse files
author
Guillaume Chau
committed
fix(ui): task logs performance regression
1 parent 2a21434 commit 0ea3a22

File tree

1 file changed

+3
-3
lines changed
  • packages/@vue/cli-ui/src/graphql-api/connectors

1 file changed

+3
-3
lines changed

packages/@vue/cli-ui/src/graphql-api/connectors/tasks.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ function open (id, context) {
429429
}
430430

431431
function logPipe (action) {
432-
const maxTime = 100
432+
const maxTime = 300
433433

434434
let queue = ''
435435
let size = 0
@@ -440,11 +440,11 @@ function logPipe (action) {
440440
queue += string
441441
size++
442442

443-
if (size === 20 || Date.now() > time + maxTime) {
443+
if (size === 50 || Date.now() > time + maxTime) {
444444
flush()
445445
} else {
446446
clearTimeout(timeout)
447-
setTimeout(flush, maxTime)
447+
timeout = setTimeout(flush, maxTime)
448448
}
449449
}
450450

0 commit comments

Comments
 (0)