Increase default object memory to 150 since shortlog loads 101 commits
Increase default object memory to 150 since shortlog loads 101 commits

--- a/config/gitphp.conf.defaults.php
+++ b/config/gitphp.conf.defaults.php
@@ -373,7 +373,7 @@
  * the bottleneck).  Decrease if you have low web server memory or
  * lots of projects in your install (memory is the bottleneck).
  */
-$gitphp_conf['objectmemory'] = 100;
+$gitphp_conf['objectmemory'] = 150;
 
 
 

--- a/include/cache/MemoryCache.class.php
+++ b/include/cache/MemoryCache.class.php
@@ -120,7 +120,7 @@
 	 */
 	private function Evict()
 	{
-		$size = GitPHP_Config::GetInstance()->GetValue('objectmemory', 100);
+		$size = GitPHP_Config::GetInstance()->GetValue('objectmemory', 150);
 
 		while (count($this->cacheMap) >= $size) {
 			$key = array_pop($this->cacheMap);

comments