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

Optimise data transfer between principle and worker procs #17

Merged
merged 1 commit into from
May 12, 2024

Conversation

dosaboy
Copy link
Owner

@dosaboy dosaboy commented May 10, 2024

SearchResultMinimal is used to transder results between the worker processes and the main collector. As a result it must be a small as possible in order to keep transfer fast and memory footprint low. There were several
unnecessary variables being stored and duplicated in this object that have now been removed maing the transfer faster and using less memory. Transfers are also batched so as to reduce interruption on searches.

@dosaboy dosaboy force-pushed the ipc-improvements branch 2 times, most recently from c69262b to ab167ae Compare May 11, 2024 10:26
SearchResultMinimal is used to transder results between
the worker processes and the main collector. As a result
it must be a small as possible in order to keep transfer
fast and memory footprint low. There were several
unnecessary variables being stored and duplicated in this
object that have now been removed maing the transfer
faster and using less memory. Transfers are also batched
so as to reduce interruption on searches.

Also removes unnecssary use of multiprocessing.Queue for
single thread usecase.
@dosaboy dosaboy merged commit 0db953e into main May 12, 2024
2 checks passed
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