mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-11-04 23:03:10 +02:00
changing caching values to reduce memory usage
This commit is contained in:
parent
47647ccf40
commit
63ebeec310
13
zimlib/patches/003-reduce-memory-usage.patch
Normal file
13
zimlib/patches/003-reduce-memory-usage.patch
Normal file
@ -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 + '"');
|
Loading…
Reference in New Issue
Block a user