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

Parallelize network cloning #907

Merged
merged 4 commits into from
Mar 5, 2024
Merged

Parallelize network cloning #907

merged 4 commits into from
Mar 5, 2024

Conversation

pet-mit
Copy link
Collaborator

@pet-mit pet-mit commented Feb 28, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

Performance improvement

What is the current behavior?

When parallelizing contingency computations or network actions in search tree, the network pool starts by cloning the network for it to be used by multiple threads. These clones are created in the main thread, and cloning a big network can be slow. Thus we need to wait N x the time to clone one network (N being the number of computation threads).

What is the new behavior (if this is a feature change)?
The clones are now created on the N threads in parallel, thus dividing this wait time by N.

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

Signed-off-by: Peter Mitri <[email protected]>
Signed-off-by: Peter Mitri <[email protected]>
Signed-off-by: Peter Mitri <[email protected]>
@pet-mit pet-mit marked this pull request as ready for review February 29, 2024 09:28
@pet-mit pet-mit requested a review from phiedw February 29, 2024 09:28
@pet-mit pet-mit merged commit 9bd9079 into main Mar 5, 2024
6 checks passed
@pet-mit pet-mit deleted the parallel_network_cloning2 branch March 5, 2024 09:34
MartinBelthle pushed a commit that referenced this pull request May 28, 2024
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.

2 participants