Parse more data at each fifo buffer read

This commit is contained in:
Maxime Coste 2021-03-31 17:19:20 +11:00
parent da9a196fa0
commit 4be6df9d02

View File

@ -157,7 +157,7 @@ Buffer* create_fifo_buffer(String name, int fd, Buffer::Flags flags, bool scroll
// if we read data slower than it arrives in the fifo, limiting the
// iteration number allows us to go back go back to the event loop and
// handle other events sources (such as input)
constexpr size_t max_loop = 16;
constexpr size_t max_loop = 1024;
bool closed = false;
size_t loop = 0;
char data[buffer_size];