Skip to content

Comments

Semaphore lock#77

Open
zthatch wants to merge 3 commits intoBillingegroup:mainfrom
zthatch:semaphoreLock
Open

Semaphore lock#77
zthatch wants to merge 3 commits intoBillingegroup:mainfrom
zthatch:semaphoreLock

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