Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-> Small performance improvement - Varna "line" and "radiate" now computing in parallel #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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