From 526feb9b80a7f2e4715b14edd4503d798275e275 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 8 Mar 2013 17:38:24 +0000 Subject: [PATCH] sys: use progressively larger temporary buffers when reading files. --- src/sys/file.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sys/file.cpp b/src/sys/file.cpp index 6277bdaa..06e5bf6e 100644 --- a/src/sys/file.cpp +++ b/src/sys/file.cpp @@ -84,8 +84,7 @@ class FileData ret.Resize(oldsize + done); memcpy(&ret[oldsize], &buf[0], done); - /* XXX: we could resize the buffer here - * buf.Resize(buf.Count() * 3 / 2); */ + buf.Resize(buf.Count() * 3 / 2); } return ret; }