summaryrefslogtreecommitdiff
path: root/src/buffer_utils.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2021-03-31 17:19:20 +1100
committerMaxime Coste <mawww@kakoune.org>2021-03-31 17:19:20 +1100
commit4be6df9d0254e6cb34084de7591e869f42da08f5 (patch)
tree1cee32fd65816f0f8a04765f0c771302a776929d /src/buffer_utils.cc
parentda9a196fa0e08463265534fecd82e12dae3ce45a (diff)
Parse more data at each fifo buffer read
Diffstat (limited to 'src/buffer_utils.cc')
-rw-r--r--src/buffer_utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer_utils.cc b/src/buffer_utils.cc
index 69cdb574..5dc53f65 100644
--- a/src/buffer_utils.cc
+++ b/src/buffer_utils.cc
@@ -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];