From 4b46510ef99d8729c3e520e1a10d643257c92562 Mon Sep 17 00:00:00 2001 From: Ricardo Branco Date: Tue, 31 Dec 2024 12:01:24 +0100 Subject: [PATCH] Increase buffer size --- restartable.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restartable.go b/restartable.go index 497e966..1219f97 100644 --- a/restartable.go +++ b/restartable.go @@ -62,7 +62,7 @@ func (p *RealProcPidFS) ReadFile(path string) ([]byte, error) { } defer unix.Close(fd) - data := make([]byte, 0, 1024) + data := make([]byte, 0, 8192) for { if len(data) >= cap(data) { d := append(data[:cap(data)], 0)