perf: tweak pty flow control

This commit is contained in:
Eugene Pankov
2021-08-19 23:14:38 +02:00
parent e33e954e41
commit 60046da4b3

View File

@@ -7,8 +7,8 @@ import { Application } from './app'
class PTYDataQueue {
private buffers: Buffer[] = []
private delta = 0
private maxChunk = 1024
private maxDelta = 1024 * 50
private maxChunk = 1024 * 100
private maxDelta = this.maxChunk * 5
private flowPaused = false
private decoder = new StringDecoder()