From: <pjw...@us...> - 2010-08-17 13:41:53
|
Revision: 3409 http://mosesdecoder.svn.sourceforge.net/mosesdecoder/?rev=3409&view=rev Author: pjwilliams Date: 2010-08-17 13:41:46 +0000 (Tue, 17 Aug 2010) Log Message: ----------- In PhraseDictionaryNodeSCFG, use separate maps for children with terminal and non-terminal keys. This removes the need to look up source terminals twice. The chart decoder spends a *lot* of time in PhraseDictionaryNodeSCFG::GetChild() (approx 38% of post-startup decoding time in my target syntax test, according to callgrind), so this makes a significant difference. Modified Paths: -------------- trunk/moses/src/PhraseDictionaryNodeSCFG.cpp trunk/moses/src/PhraseDictionaryNodeSCFG.h trunk/moses/src/PhraseDictionarySCFG.cpp trunk/moses/src/PhraseDictionarySCFGChart.cpp This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |