Re: NSImage initWithContentsOfURL slowness
Re: NSImage initWithContentsOfURL slowness
- Subject: Re: NSImage initWithContentsOfURL slowness
- From: Nirias <email@hidden>
- Date: Sun, 3 May 2009 22:26:50 -0700
More information:
My testing wasnt thorough enough:
While Firefox always loads rapidly, Safari has the same delay as cocoa, and
there is a clear pattern. Two loads in 1-2 seconds, then the 3rd load takes
a really long time. This pattern repeats with every 3rd load delayed,
whether loading NSImage from the url or refreshing in Safari.
My workaround for now is to hand code this simple HTTP Get operation,
putting the data into NSData and then initializing the NSImage from the
NSData. Now it loads in 1/2 second or less, every time.
So it appears to be a webkit bug that afflicts both the Cocoa web
functionality as well as Safari.
_______________________________________________
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