From 181914b822fee18e468b3787ab3eada80522c9b6 Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Wed, 30 Dec 2015 22:58:12 +0000 Subject: [PATCH] use boost fast pool allocator --- contrib/other-builds/moses2/Search/CubePruning/Misc.h | 2 +- contrib/other-builds/moses2/Search/CubePruning/Search.cpp | 4 ++-- contrib/other-builds/moses2/Search/CubePruning/Search.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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;