From: Gunnar Beutner Date: Sun, 17 Jun 2012 23:29:02 +0000 (+0200) Subject: Performance fixes. X-Git-Tag: v0.0.1~406^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=86ffd15eb94e62ed773034446d24f20c7e79d5c4;p=icinga2 Performance fixes. --- diff --git a/base/threadpool.h b/base/threadpool.h index 52b766400..2eded6ef9 100644 --- a/base/threadpool.h +++ b/base/threadpool.h @@ -12,7 +12,7 @@ public: typedef function Task; - ThreadPool(long numThreads = 16); + ThreadPool(long numThreads = 64); ~ThreadPool(void); static ThreadPool::Ptr GetDefaultPool(void); @@ -33,4 +33,4 @@ private: } -#endif /* THREADPOOL_H */ \ No newline at end of file +#endif /* THREADPOOL_H */ diff --git a/base/timer.cpp b/base/timer.cpp index 9159abe90..caeaca719 100644 --- a/base/timer.cpp +++ b/base/timer.cpp @@ -131,8 +131,6 @@ void Timer::Start(void) Stop(); Timers.push_back(GetSelf()); - - Reschedule(time(NULL) + m_Interval); } /**