pinterest / PINCache

Fast, non-deadlocking parallel object cache for iOS, tvOS and OS X
Apache License 2.0
2.66k stars 361 forks source link

Add ability to configure maxConcurrentOperations #329

Closed andyfinnell closed 4 months ago

andyfinnell commented 4 months ago

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.