The amount of data present in the markov chain is 2.6 MB as of now in a running instance - in the disk stored mode. The bot is using 164MB of RAM. This needs to be addressed. I could potentially try a few approaches:
Already did (helped a fairly large amount:)
- use slots to somewhat reduce the in memory use
Additional steps:
- Use BTree from zope to store the indexes rather than using dict... https://pypi.python.org/pypi/BTrees
- analyze what exactly is using up the RAM and try to reduce it while remaining pure python
- Rewrite the markov chain logic in c
The amount of data present in the markov chain is 2.6 MB as of now in a running instance - in the disk stored mode. The bot is using 164MB of RAM. This needs to be addressed. I could potentially try a few approaches:
Already did (helped a fairly large amount:)
Additional steps: