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

Sovrin-Node: Python interpreter is not executed in Optimise mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Complete
    • Priority: High
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Sprint:
      M1 Prelude

      Description

      Sovrin-Node is started via the ubuntu service file

      /etc/systemd/system/sovrin-node.service

      However the python interpreter is not started in Optimise mode it is running in the default 'DEBUG' mode

      The entry point python script should be executed with the '-O' option which will ensure it is running in optimised mode.

      This will have 2 side effects:

      1. Strip all assert statements. This trades defense against corrupt program state for speed.
      2. Strip all docstrings. So a wee bit of saving on memory requirment

       

      So when triaging we need to consider the bullet # 1, do we want to play safe. Asserts are probably going still crash the program.

       
       
       
       
       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              danielhardman Daniel Hardman
              Reporter:
              farooq_m_khan Farooq Khan
              Watchers:
              Alexander Shcherbakov, Alexander Shekhovcov, Andrey Kononykhin, Farooq Khan, Vladimir Shishkin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day, 1 hour
                  1d 1h
                  Remaining:
                  Remaining Estimate - 1 day, 1 hour
                  1d 1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified