Skip to content

Parallelization#3

Open
olichtne wants to merge 1 commit intomainfrom
parallelization
Open

Parallelization#3
olichtne wants to merge 1 commit intomainfrom
parallelization

Conversation

@olichtne
Copy link
Copy Markdown

Reimplemented the create_app function to create processes for individual source/filter/output modules instead of running the modules directly in a sequential loop in the main method.

Instead of this the main app loop simply follows a sequence of multiprocessing.connection.Connection calls to send and receive data from the parallel processes.

In-between the process communication we do additional "merge" logic similar to what we've done previously as this likely helps with improving some efficiency.

This should improve the overall performance of the tool at the expense of burning more cpu cores for the parallel processes.

@olichtne olichtne requested a review from ondryaso January 10, 2025 15:21
Reimplemented the `create_app` function to create processes for
individual source/filter/output modules instead of running the modules
directly in a sequential loop in the main method.

Instead of this the main app loop simply follows a sequence of
multiprocessing.connection.Connection calls to send and receive data
from the parallel processes.

In-between the process communication we do additional "merge" logic
similar to what we've done previously as this likely helps with
improving some efficiency.

This should improve the overall performance of the tool at the expense
of burning more cpu cores for the parallel processes.

Signed-off-by: Ondrej Lichtner <ilichtner@fit.vutbr.cz>
@olichtne
Copy link
Copy Markdown
Author

olichtne commented Feb 6, 2025

tested and pushed fixes, discussed with Ondra that the next step is to deploy into production.

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