Skip to content

Concurrent Downloads using NSOperationQueues

eng.alphonsolabs.com
17 pointsfilipmares3 comments
On HN

Comments

Nice tutorial summarizing this useful action. The ASIHTTPRequest lib is also good to note here as the ASINetworkQueue NSOperationQueue subclass allows for tracking progress of the entire queue in addition to a few other useful delegate methods

http://allseeing-i.com/ASIHTTPRequest/How-to-use#about_ASINe...

Here's an example of the kind of speedup you can see from proper usage of NSOperationQueues: http://tech.gilt.com/post/3187131303/tips-for-optimizing-iph...

Pretty impressive to see them running side by side.

This page doesn't mention it, but it's interesting to note that the NSOperation subclass used here actually does all of its work on the main thread.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.