From 63ebeec310ac292f2fd81805e5b90d52d4f7ed81 Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Sun, 11 Oct 2009 01:26:58 +0200 Subject: [PATCH] changing caching values to reduce memory usage --- zimlib/patches/003-reduce-memory-usage.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 zimlib/patches/003-reduce-memory-usage.patch diff --git a/zimlib/patches/003-reduce-memory-usage.patch b/zimlib/patches/003-reduce-memory-usage.patch new file mode 100644 index 0000000..24460f1 --- /dev/null +++ b/zimlib/patches/003-reduce-memory-usage.patch @@ -0,0 +1,13 @@ +--- zimlib.orig/src/fileimpl.cpp 2009-08-25 01:47:04.000000000 +0200 ++++ zimlib/src/fileimpl.cpp 2009-10-08 13:02:45.000000000 +0200 +@@ -43,8 +43,8 @@ + // + FileImpl::FileImpl(const char* fname) + : zimFile(fname, std::ios::in | std::ios::binary), +- direntCache(512), +- clusterCache(16) ++ direntCache(128), ++ clusterCache(4) + { + if (!zimFile) + throw ZenoFileFormatError(std::string("can't open zim-file \"") + fname + '"');