summaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorOlliver Schinagl <oliver@schinagl.nl>2021-01-19 20:32:07 +0100
committerTimo Teräs <timo.teras@iki.fi>2021-02-07 15:25:10 +0200
commit77adfc5e67c7a8489705d497bf11568b6c7f3b31 (patch)
treed747ae96d50acddc219911fde10f68a9eb5dbc31 /src/io.c
parent5e62eee4f4c415afab5a1e38a266a5318f0c3a33 (diff)
downloadapk-tools-77adfc5e67c7a8489705d497bf11568b6c7f3b31.tar.gz
apk-tools-77adfc5e67c7a8489705d497bf11568b6c7f3b31.tar.bz2
apk-tools-77adfc5e67c7a8489705d497bf11568b6c7f3b31.tar.xz
apk-tools-77adfc5e67c7a8489705d497bf11568b6c7f3b31.zip
io: Handle really long lines
While commit 18b0b45 (io: Handle long lines, Thu Jan 7 17:25:23 2021 +0100) did attempt to address this issue, the buffer really is still to small when dealing with big-big dependency lists. Lets make it sufficiently large for now, until the new APKINDEX format can support multi-line dependencies, making this not needed any more. [TT: Originally the buffer size was conservative to run on resource constrained embedded platforms. But since the available memory on those has also increased much, the adjustment to 128kB makes sense also to increase performance a little bit. Removing also the iolimit test.] Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index decf167..08aee5c 100644
--- a/src/io.c
+++ b/src/io.c
@@ -32,7 +32,7 @@
#define HAVE_FGETGRENT_R
#endif
-size_t apk_io_bufsize = 16*1024;
+size_t apk_io_bufsize = 128*1024;
static void apk_file_meta_from_fd(int fd, struct apk_file_meta *meta)
{