From 3a3696473437193f411e60a56f8371a6fa1904b9 Mon Sep 17 00:00:00 2001 From: yexo Date: Thu, 18 Feb 2010 18:04:02 +0000 Subject: [PATCH] (svn r19161) -Codechange: make the default size of the open list used for yapf a lot lower to reduce memory usage --- src/misc/binaryheap.hpp | 2 +- src/pathfinder/yapf/nodelist.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc/binaryheap.hpp b/src/misc/binaryheap.hpp index 85dc202f0b..073d246381 100644 --- a/src/misc/binaryheap.hpp +++ b/src/misc/binaryheap.hpp @@ -40,7 +40,7 @@ private: 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) { diff --git a/src/pathfinder/yapf/nodelist.hpp b/src/pathfinder/yapf/nodelist.hpp index e88085b61b..9260c45f74 100644 --- a/src/pathfinder/yapf/nodelist.hpp +++ b/src/pathfinder/yapf/nodelist.hpp @@ -49,7 +49,7 @@ protected: public: /** default constructor */ CNodeList_HashTableT() - : m_open_queue(204800) + : m_open_queue(2048) { m_new_node = NULL; }