• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: load an image file too slow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >load an image file too slow (From: 김경옥 <email@hidden>)

  • Prev by Date: load an image file too slow
  • Next by Date: [NEWBIE]: Active loading of browser
  • Previous by thread: load an image file too slow
  • Next by thread: [NEWBIE]: Active loading of browser
  • Index(es):
    • Date
    • Thread