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

trying to make RAGGraphBuilder faster #47

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

snibbor
Copy link

@snibbor snibbor commented Mar 1, 2023

Hello,

Thank you again for this package and all your work on it.

I was dabbling with the RAGGraphBuilder for my dataset and I wanted to try and make the tissue graph processing faster.

I tried implementing multiprocessing on _set_node_labels and _build_topology with the pathos.multiprocessing ProcessPool. It works fine on my machine (maybe a 2-4x speedup), but it is far from an elegant solution.

I am sure there is a cleaner way to write this, maybe with joblib?
https://joblib.readthedocs.io/en/latest/parallel.html

One problem is that the memory consumption can spike fairly high above 50GB depending on the data and num_workers, so that might crash a job if someone isn't expecting it... Not sure what the work around is in Python, maybe using numba or something similar?

Anyways, thought I would pass it along. Thanks again!

Best,
Jack

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