Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve memory requirements of mempool_monitor.py
Because the demo script was never intended to be run for long periods of time, the script simply collected *all* event timestamps in lists for the calculation of the event count and rate metrics. This results in increasing memory and CPU usage over time. The problem is resolved by explicitly keeping count of events older than then minutes and removing the corresponding timestamps from lists.
- Loading branch information