diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-10-17 19:49:41 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-10-17 19:49:41 +0400 |
commit | 3ced55e33db8aaf27cee61dd3895f840f440f491 (patch) | |
tree | aad14c3502a5f5f59287e24b7cdcfe1b8aa82250 /search/vertex_generator.hh | |
parent | f4116ec6f5bc2740350ed627a5cbfc99a8c2df16 (diff) |
Put note into PartialEdge, delete edge_queue
Before with pop 25:
real 9m49.480s
user 9m38.389s
sys 0m10.354s
After with pop 25:
real 8m46.553s
user 8m35.138s
sys 0m10.654s
Diffstat (limited to 'search/vertex_generator.hh')
-rw-r--r-- | search/vertex_generator.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/search/vertex_generator.hh b/search/vertex_generator.hh index bb04573f8..96df3e0a8 100644 --- a/search/vertex_generator.hh +++ b/search/vertex_generator.hh @@ -24,7 +24,7 @@ class VertexGenerator { public: VertexGenerator(ContextBase &context, Vertex &gen); - void NewHypothesis(PartialEdge partial, Note note); + void NewHypothesis(PartialEdge partial); void FinishedSearch() { root_.under->SortAndSet(context_, NULL); @@ -43,7 +43,7 @@ class VertexGenerator { Trie &FindOrInsert(Trie &node, uint64_t added, const lm::ngram::ChartState &state, unsigned char left, bool left_full, unsigned char right, bool right_full); - Final *CompleteTransition(Trie &node, const lm::ngram::ChartState &state, Note note, PartialEdge partial); + Final *CompleteTransition(Trie &node, const lm::ngram::ChartState &state, PartialEdge partial); ContextBase &context_; |