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

Add ability to configure maxConcurrentOperations #329

Conversation

andyfinnell
Copy link
Contributor

Summary

PINCache uses a PINOperationQueue to perform async operations on a background queue, while preventing thread explosion. However, the amount is hardcoded to 10 and I'd like to be able to experiment with how much concurrency we use. Therefore, add a property to allow it to be configuration.

Testing

Since it's just a configuration parameter, make sure the unit tests still pass.

andyfinnell and others added 4 commits May 6, 2024 15:30
## Summary

PINCache uses a PINOperationQueue to perform async operations on a background queue, while preventing thread explosion. However, the amount is hardcoded to 10 and I'd like to be able to experiment with how much concurrency we use. Therefore, add a property to allow it to be configuration.

## Testing

Since it's just a configuration parameter, make sure the unit tests still pass.
@andyfinnell andyfinnell merged commit 8ad8111 into pinterest:master May 10, 2024
6 checks passed
@andyfinnell andyfinnell deleted the allow-setting-of-concurrent-operations branch May 10, 2024 22:27
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