Uploaded image for project: 'Indy Node'
  1. Indy Node
  2. INDY-716

The Node starts with asyncio debug=True

    XMLWordPrintable

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.

      Attachments

        Activity

          People

            danielhardman Daniel Hardman
            alexander.shekhovcov Alexander Shekhovcov
            Alexander Shekhovcov, Lovesh Harchandani, Sergey Shilov, Victor Muzychenko, Vladimir Shishkin
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: