From 3a9532c8fd9e38315566752db2f04049059f9ba8 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 16 Aug 2016 01:52:24 +0900 Subject: Increase read buffer size to 64KB --- src/constants.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/constants.go') diff --git a/src/constants.go b/src/constants.go index e87e3938..74c59fa6 100644 --- a/src/constants.go +++ b/src/constants.go @@ -15,7 +15,8 @@ const ( coordinatorDelayStep time.Duration = 10 * time.Millisecond // Reader - defaultCommand = `find . -path '*/\.*' -prune -o -type f -print -o -type l -print 2> /dev/null | sed s/^..//` + defaultCommand = `find . -path '*/\.*' -prune -o -type f -print -o -type l -print 2> /dev/null | sed s/^..//` + readerBufferSize = 64 * 1024 // Terminal initialDelay = 20 * time.Millisecond -- cgit v1.2.3