Is there a way of estimating the memory footprint for JSGF grammars? E.g. number of rules, number of words etc? Roughly how many kilobytes for a common JSGF?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a way of estimating the memory footprint for JSGF grammars? E.g. number of rules, number of words etc? Roughly how many kilobytes for a common JSGF?
You can try valgrind with massif http://valgrind.org/docs/manual/ms-manual.html
Rules do not consume much memory, few kilobytes for whole JSGF. Much more memory is consumed by a history structure containing decoding variants.
Thanks. Your help is greatly appreciated, as always!
Is this history structure built during detection? Cleared when utterance is ended?
Last edit: Nickolay V. Shmyrev 2016-10-18
Yes
Yes