1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-10-01 12:10:44 +03:00

reduce memory requirements to a minimum because it's still using too much - however these changes may reduce performance even more

This commit is contained in:
Mirko Vogt 2009-11-14 00:03:28 +01:00
parent 02f249a1ad
commit 7b2203b621

View File

@ -6,8 +6,8 @@
: zimFile(fname, std::ios::in | std::ios::binary), : zimFile(fname, std::ios::in | std::ios::binary),
- direntCache(512), - direntCache(512),
- clusterCache(16) - clusterCache(16)
+ direntCache(128), + direntCache(32),
+ clusterCache(4) + clusterCache(1)
{ {
if (!zimFile) if (!zimFile)
throw ZenoFileFormatError(std::string("can't open zim-file \"") + fname + '"'); throw ZenoFileFormatError(std::string("can't open zim-file \"") + fname + '"');