Skip to content

Commit

Permalink
fix(ui): task logs performance regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Chau committed Jun 14, 2018
1 parent 2a21434 commit 0ea3a22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@vue/cli-ui/src/graphql-api/connectors/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ function open (id, context) {
}

function logPipe (action) {
const maxTime = 100
const maxTime = 300

let queue = ''
let size = 0
Expand All @@ -440,11 +440,11 @@ function logPipe (action) {
queue += string
size++

if (size === 20 || Date.now() > time + maxTime) {
if (size === 50 || Date.now() > time + maxTime) {
flush()
} else {
clearTimeout(timeout)
setTimeout(flush, maxTime)
timeout = setTimeout(flush, maxTime)
}
}

Expand Down

0 comments on commit 0ea3a22

Please sign in to comment.