Details
-
Bug
-
Status: Complete
-
Medium
-
Resolution: Done
-
None
-
None
-
None
-
12
Description
In the run_node method there is the following code:
with Looper(debug=True) as looper: node = Node(name, nodeRegistry=None, basedirpath=config.baseDir, ha=node_ha, cliha=client_ha) looper.add(node) looper.run()
So when the node is started using start_sovrin_node it runs asyncio debug mode enabled.
https://docs.python.org/3/library/asyncio-dev.html#asyncio-debug-mode
It may affect on performance and memory usage.
For example, the test test_catchup_f_plus_one.py works two times faster with debug disabled (change mode of some loopers in conftest.py). 21.12 seconds against 48.29 seconds.