(svn r19161) -Codechange: make the default size of the open list used for yapf a lot lower to reduce memory usage

This commit is contained in:
yexo 2010-02-18 18:04:02 +00:00
parent 1abc0db336
commit 3a36964734
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ private:
ItemPtr *m_items; ///< The heap item pointers ItemPtr *m_items; ///< The heap item pointers
public: public:
explicit CBinaryHeapT(int max_items = 102400) explicit CBinaryHeapT(int max_items)
: m_size(0) : m_size(0)
, m_max_size(max_items) , m_max_size(max_items)
{ {

View File

@ -49,7 +49,7 @@ protected:
public: public:
/** default constructor */ /** default constructor */
CNodeList_HashTableT() CNodeList_HashTableT()
: m_open_queue(204800) : m_open_queue(2048)
{ {
m_new_node = NULL; m_new_node = NULL;
} }