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

Semaphore lock #77

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

Semaphore lock #77

wants to merge 3 commits into from

Conversation

zthatch
Copy link
Collaborator

@zthatch zthatch commented Aug 18, 2021

I've threaded the google cloud storage requests such that they actually happen in parallel (google cloud python API does not yet support async parallelism). I've also restricted the thread spawning with a semaphore lock, which I've tested simply by testing how much slower it runs when you set the semaphore lock to size 1.

I have not tested that the lock successfully prevents stack overflow (there is a chance that the previous generator results are not relinquished when iterating through them as futures).

…rency, realized that gcs doesn't support async concurrency
…elete this commit if google fixes their async block for gcs requests
@zthatch
Copy link
Collaborator Author

zthatch commented Aug 18, 2021

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