diff --git a/contrib/other-builds/moses2/Search/CubePruning/Misc.h b/contrib/other-builds/moses2/Search/CubePruning/Misc.h index 845550fa2..1d8cbb481 100644 --- a/contrib/other-builds/moses2/Search/CubePruning/Misc.h +++ b/contrib/other-builds/moses2/Search/CubePruning/Misc.h @@ -59,7 +59,7 @@ class CubeEdge public: typedef Vector Hypotheses; typedef std::priority_queue >, + std::vector >, QueueItemOrderer> Queue; typedef std::pair SeenPositionItem; diff --git a/contrib/other-builds/moses2/Search/CubePruning/Search.cpp b/contrib/other-builds/moses2/Search/CubePruning/Search.cpp index 1b3d128c5..fde1ab073 100644 --- a/contrib/other-builds/moses2/Search/CubePruning/Search.cpp +++ b/contrib/other-builds/moses2/Search/CubePruning/Search.cpp @@ -29,8 +29,8 @@ Search::Search(Manager &mgr) ,m_stacks(mgr) ,m_queueOrder(new QueueItemOrderer()) -,m_queueContainerAlloc(new boost::pool_allocator()) -,m_queueContainer(new std::vector >(*m_queueContainerAlloc)) +,m_queueContainerAlloc(new boost::fast_pool_allocator()) +,m_queueContainer(new std::vector >(*m_queueContainerAlloc)) ,m_queue(new CubeEdge::Queue(*m_queueOrder, *m_queueContainer)) ,m_seenPositionsAlloc(new boost::pool_allocator()) diff --git a/contrib/other-builds/moses2/Search/CubePruning/Search.h b/contrib/other-builds/moses2/Search/CubePruning/Search.h index dc5568b5e..c227be488 100644 --- a/contrib/other-builds/moses2/Search/CubePruning/Search.h +++ b/contrib/other-builds/moses2/Search/CubePruning/Search.h @@ -36,8 +36,8 @@ protected: Stacks m_stacks; QueueItemOrderer *m_queueOrder; - boost::pool_allocator *m_queueContainerAlloc; - std::vector > *m_queueContainer; + boost::fast_pool_allocator *m_queueContainerAlloc; + std::vector > *m_queueContainer; CubeEdge::Queue *m_queue; boost::pool_allocator *m_seenPositionsAlloc;