Re: load an image file too slow
Re: load an image file too slow
- Subject: Re: load an image file too slow
- From: j o a r <email@hidden>
- Date: Fri, 22 Oct 2004 10:35:16 +0200
On 2004-10-22, at 10.25, 김경옥 wrote:
I'm initializing an image using
image = [[NSImage alloc] initWithContentsOfFile:path] retain];
You should almost certainly not retain there - it looks like a
potential memory leak to me. Do you understand why?
If the image size is about 2000 x 2500, the loading time is very slow.
The size is bigger, the loading time is slower and slower and it looks
almost dead.
Is there any way to speed up image loading time?
When you say "it looks almost dead" I get the feeling that you're not
so much concerned with the time, as with the user experience? I don't
know how you would speed up loading, but if you would like to improve
the user experience, you should consider threading the load.
j o a r
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden