changeset 14585:f373a72e30b1 draft

(svn r19161) -Codechange: make the default size of the open list used for yapf a lot lower to reduce memory usage
author yexo <yexo@openttd.org>
date Thu, 18 Feb 2010 18:04:02 +0000
parents 908c0ed3e892
children 804078c18cdf
files src/misc/binaryheap.hpp src/pathfinder/yapf/nodelist.hpp
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/misc/binaryheap.hpp
+++ b/src/misc/binaryheap.hpp
@@ -40,7 +40,7 @@
 	ItemPtr                *m_items;    ///< The heap item pointers
 
 public:
-	explicit CBinaryHeapT(int max_items = 102400)
+	explicit CBinaryHeapT(int max_items)
 		: m_size(0)
 		, m_max_size(max_items)
 	{
--- a/src/pathfinder/yapf/nodelist.hpp
+++ b/src/pathfinder/yapf/nodelist.hpp
@@ -49,7 +49,7 @@
 public:
 	/** default constructor */
 	CNodeList_HashTableT()
-		: m_open_queue(204800)
+		: m_open_queue(2048)
 	{
 		m_new_node = NULL;
 	}