use mempool for SeenPosition

This commit is contained in:
Hieu Hoang 2016-02-25 15:04:43 +00:00
parent e45477bf69
commit 9aa8b6eeaa
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -31,7 +31,7 @@ Search::Search(Manager &mgr)
,m_queue(QueueItemOrderer(), std::vector<QueueItem*>() )
,m_seenPositions()
,m_seenPositions(MemPoolAllocator<CubeEdge::SeenPositionItem>(mgr.GetPool()))
{
}