NSURLConnection performance

Posted by oksk on Stack Overflow See other posts from Stack Overflow or by oksk
Published on 2010-02-19T09:32:35Z Indexed on 2010/05/31 0:12 UTC
Read the original article Hit count: 483

Filed under:
|
|

Hi all,

I'm using NSURLConnection for downloading some images in my app currently. Before implementing via this, I implemented it by NSData(dataWithContentOfURL) in NSThread. But I wanted to cancel during downloading images, So I changed it to NSURLConnection.

But It happens other problem. Performance was very low after changing. For example, There is at least 5seconds for downloading images at NSThread(NSData async) But, There is more than 2 or 3 times than it at NSURLConnection(async) !!

Can I enhance performance ?? How??

(* sorry about my question with NSData(dataWithContentOfFile). correct question is dataWithContentOfURL)

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about nsurlconnection