From fadb2e68a2640f17662d78db13951e0f2bd0eb02 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Sat, 19 Jul 2025 09:34:01 +0300 Subject: [PATCH] increased filesystem read buffer to speedup writes --- tools/filesystem/blob/reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/filesystem/blob/reader.go b/tools/filesystem/blob/reader.go index 9995c619..69a0d1e9 100644 --- a/tools/filesystem/blob/reader.go +++ b/tools/filesystem/blob/reader.go @@ -173,7 +173,7 @@ func (r *Reader) WriteTo(w io.Writer) (int64, error) { func readFromWriteTo(r io.Reader, w io.Writer) (int64, int64, error) { // Note: can't use io.Copy because it will try to use r.WriteTo // or w.WriteTo, which is recursive in this context. - buf := make([]byte, 1024) + buf := make([]byte, 4096) var totalRead, totalWritten int64 for { numRead, rerr := r.Read(buf)