CPU sampling and +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]
CPU sampling and +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]
- Subject: CPU sampling and +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]
- From: Paulo Andrade <email@hidden>
- Date: Fri, 13 Nov 2009 12:36:59 +0000
- Resent-date: Fri, 13 Nov 2009 13:01:45 +0000
- Resent-from: Paulo Andrade <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: Cocoa-dev Mailinglist <email@hidden>
Hello,
I'm sampling an iPhone app to detect any bottlenecks in performance.
Interesting thing is that, from the first use of an NSURLConnection the following method will appear on Instruments:
+[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]
And it's constantly running, even when the app is stopped (screenshot: http://1wwj.sl.pt).
I'm guessing that when using a NSURLConnection the framework spawns a new thread and creates a runloop for it, this runloop just like the runloop on the main thread is constantly running even when I'm no longer using any NSURLConnection.
Is my guess correct? Does this have any effect performance wise?
Regards,
Paulo Andrade_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden