mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-05 02:22:21 +03:00
more mempool
This commit is contained in:
parent
844e8a16c4
commit
d1cceb1d38
@ -37,9 +37,6 @@ Search::Search(Manager &mgr)
|
||||
|
||||
Search::~Search()
|
||||
{
|
||||
BOOST_FOREACH(CubeEdges &edges, m_cubeEdges) {
|
||||
RemoveAllInColl(edges);
|
||||
}
|
||||
}
|
||||
|
||||
void Search::Decode()
|
||||
@ -191,7 +188,7 @@ void Search::PostDecode(size_t stackInd)
|
||||
|
||||
BOOST_FOREACH(const TargetPhrases *tps, path.targetPhrases) {
|
||||
if (tps && tps->GetSize()) {
|
||||
CubeEdge *edge = new CubeEdge(m_mgr, sortedHypos, path, *tps, newBitmap);
|
||||
CubeEdge *edge = new (pool.Allocate<CubeEdge>()) CubeEdge(m_mgr, sortedHypos, path, *tps, newBitmap);
|
||||
edges.push_back(edge);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user