memory manager cleanup and removal

This commit is contained in:
DarthArgus
2016-12-04 00:55:37 +00:00
parent 23cf1cc584
commit 9f9fed4693
25 changed files with 39 additions and 107 deletions
@@ -11,7 +11,6 @@
#include "sharedDebug/DebugFlags.h"
#include "sharedFoundation/ExitChain.h"
#include "sharedMemoryManager/MemoryManager.h"
#include "sharedSynchronization/Mutex.h"
#include "zlib.h"
@@ -88,10 +87,10 @@ void ZlibCompressorNamespace::freeWrapper(voidpf opaque, voidpf address)
void ZlibCompressor::install(int numberOfParallelThreads)
{
if (numberOfParallelThreads <= 1 || MemoryManager::getLimit() < 260)
if (numberOfParallelThreads <= 1)
ms_poolElementCount = 5;
else
if (numberOfParallelThreads <= 2 || MemoryManager::getLimit() < 375)
if (numberOfParallelThreads <= 2)
ms_poolElementCount = 10;
else
ms_poolElementCount = 15;