Skip to content

Conversation

vincbeaulieu
Copy link
Contributor

Popen(...).communicate() will wait for the subprocess to end. Therefore, "line" and "radiate" interpretations were only processed sequentially. By calling it after launching both subprocess, it allows us to run the 2 instances of VARNA RNA in parallel.

ref: https://docs.python.org/3/library/subprocess.html#:~:text=Popen.communicate(input,Otherwise%2C%20it%20must%20be%20bytes.

Popen(...).communicate() will wait for the subprocess to end. Therefore, "line" and "radiate" interpretations were only processed sequentially. By calling it after launching both subprocess, it allows us to run the 2 instances of VARNA RNA in parallel.

ref: https://docs.python.org/3/library/subprocess.html#:~:text=Popen.communicate(input,Otherwise%2C%20it%20must%20be%20bytes.
vincbeaulieu added a commit to vincbeaulieu/HDV-LIG14 that referenced this pull request Jul 15, 2022
REASON:
Maintenance interruption.

COMMENTS:
Improve SPOT-RNA performance (see links below):

Fork:
vincbeaulieu/SPOT-RNA@97ef84a

Pull Request:
jaswindersingh2/SPOT-RNA#24

STATUS:
System is back online.
@vincbeaulieu vincbeaulieu changed the title Improve Performance Improve performance Jan 21, 2023
@vincbeaulieu vincbeaulieu changed the title Improve performance -> Small performance improvement - Varna "line" and "radiate" now computing in parallel Jan 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant