pinterest / PINOperation

Apache License 2.0
104 stars 48 forks source link

What's the difference between PINOperationQueue and NSOperationQueue ? #13

Closed joehsieh closed 6 years ago

joehsieh commented 7 years ago

Hi, @garrettmoon Recently, I want to understand the design of PINCache by reviewing the code.(Here is my rough note: https://goo.gl/VRIXZD) I realize that PINCache use PINOperation to schedule the threads to access the cache, but I'm curious about the difference between PINOperationQueue and NSOperationQueue.

Is PINOperationQueue better than NSOperationQueue in some situations ?

garrettmoon commented 7 years ago

@joehsieh yeah, this was essentially developed because we were seeing NSOperationQueue showing up in profiling when there were huge numbers of requests.