mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-02 17:09:36 +03:00
use mempool for ministack recycler
This commit is contained in:
parent
8a4596ebd3
commit
a43403a85e
@ -124,7 +124,7 @@ void MiniStack::Clear()
|
||||
Stack::Stack(const Manager &mgr)
|
||||
:m_mgr(mgr)
|
||||
,m_coll(MemPoolAllocator< std::pair<HypoCoverage, MiniStack*> >(mgr.GetPool()))
|
||||
,m_miniStackRecycler()
|
||||
,m_miniStackRecycler(MemPoolAllocator<MiniStack*>(mgr.GetPool()))
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -94,7 +94,7 @@ protected:
|
||||
const Manager &m_mgr;
|
||||
Coll m_coll;
|
||||
|
||||
std::deque<MiniStack*> m_miniStackRecycler;
|
||||
std::deque<MiniStack*, MemPoolAllocator<MiniStack*> > m_miniStackRecycler;
|
||||
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user