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

Enable multithreading in synapse python client #342

Merged

Conversation

allaway
Copy link
Contributor

@allaway allaway commented Nov 13, 2024

As discussed here, synapser is configured to disable multithreading in the synapse python client. Previously, when the R client was implemented with PythonEmbedInR, multithreading caused issues. Currently, it uses reticulate, which appears to support python multithreading, from digging through the issues on the reticulate repository. However, I did notice several examples of folks struggling with this on Windows, so that should be a priority for testing.

On a mac, I had no issues with downloading or uploading with multi threading enabled. It increased my download speed from ~14-15 MB/s to ~90 MB/s. I didn't test upload speed with multi threading disabled, but with it enabled the upload speed was ~110 MB/s.

@thomasyu888 thomasyu888 changed the base branch from master to develop November 13, 2024 19:37
@thomasyu888 thomasyu888 changed the base branch from develop to SYNR-1536-enable-multi-threads November 13, 2024 19:40
@thomasyu888 thomasyu888 merged commit b938fea into Sage-Bionetworks:SYNR-1536-enable-multi-threads Nov 13, 2024
3 of 15 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.

2 participants