mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(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:
parent
1abc0db336
commit
3a36964734
@ -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)
|
||||||
{
|
{
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user