mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-02 17:09:36 +03:00
use mempool for SeenPosition
This commit is contained in:
parent
e45477bf69
commit
9aa8b6eeaa
@ -74,7 +74,8 @@ public:
|
||||
typedef std::pair<const CubeEdge*, int> SeenPositionItem;
|
||||
typedef boost::unordered_set<SeenPositionItem,
|
||||
boost::hash<SeenPositionItem>,
|
||||
std::equal_to<SeenPositionItem> > SeenPositions;
|
||||
std::equal_to<SeenPositionItem>,
|
||||
MemPoolAllocator<SeenPositionItem> > SeenPositions;
|
||||
|
||||
const Hypotheses &hypos;
|
||||
const InputPath &path;
|
||||
|
@ -31,7 +31,7 @@ Search::Search(Manager &mgr)
|
||||
|
||||
,m_queue(QueueItemOrderer(), std::vector<QueueItem*>() )
|
||||
|
||||
,m_seenPositions()
|
||||
,m_seenPositions(MemPoolAllocator<CubeEdge::SeenPositionItem>(mgr.GetPool()))
|
||||
{
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user