mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-05 02:22:21 +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)
|
Stack::Stack(const Manager &mgr)
|
||||||
:m_mgr(mgr)
|
:m_mgr(mgr)
|
||||||
,m_coll()
|
,m_coll(MemPoolAllocator< std::pair<HypoCoverage, MiniStack*> >(mgr.GetPool()))
|
||||||
,m_miniStackRecycler()
|
,m_miniStackRecycler()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -67,6 +67,7 @@ public:
|
|||||||
typedef boost::unordered_map<HypoCoverage, MiniStack*
|
typedef boost::unordered_map<HypoCoverage, MiniStack*
|
||||||
,boost::hash<HypoCoverage>
|
,boost::hash<HypoCoverage>
|
||||||
,std::equal_to<HypoCoverage>
|
,std::equal_to<HypoCoverage>
|
||||||
|
,MemPoolAllocator< std::pair<HypoCoverage, MiniStack*> >
|
||||||
> Coll;
|
> Coll;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user