mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-02 17:09:36 +03:00
use mempool for Stack
This commit is contained in:
parent
44c41b3fe0
commit
8a4596ebd3
@ -123,7 +123,7 @@ void MiniStack::Clear()
|
||||
///////////////////////////////////////////////////////////////
|
||||
Stack::Stack(const Manager &mgr)
|
||||
:m_mgr(mgr)
|
||||
,m_coll()
|
||||
,m_coll(MemPoolAllocator< std::pair<HypoCoverage, MiniStack*> >(mgr.GetPool()))
|
||||
,m_miniStackRecycler()
|
||||
{
|
||||
}
|
||||
|
@ -67,6 +67,7 @@ public:
|
||||
typedef boost::unordered_map<HypoCoverage, MiniStack*
|
||||
,boost::hash<HypoCoverage>
|
||||
,std::equal_to<HypoCoverage>
|
||||
,MemPoolAllocator< std::pair<HypoCoverage, MiniStack*> >
|
||||
> Coll;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user