• 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: Concurrent loading of images ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Concurrent loading of images ?


  • Subject: Re: Concurrent loading of images ?
  • From: Gabriel Zachmann via Cocoa-dev <email@hidden>
  • Date: Sat, 9 May 2020 12:40:20 +0200

> I would add, that for a long running process, open ended work, or task, I
> would favor a thread.  But for short and finite items I would favor
> GCD/NSOperationQueue.
>
> Are you going to only load one image, the next image, in this concurrent
> loading scenario?  Or, will you be loading many images and caching them?

No, just one (next) image.
That will then get displayed about a minute later, at which point the image
after that should get prefetched.

>
> I would imaging looking one or two ahead would be the choice.

Yes, I am planning to look ahead just one image.
That's why I thought a whole queue might be overdoing it for just one task that
takes usually just a few milliseconds, and occasionally 1-2 seconds.

But if you say that for such one-off tasks, an NSOperationQueue is better, I'll
go with that approach.

And thanks a lot to everybody for sharing their insights and hints.


_______________________________________________

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

References: 
 >Re: Concurrent loading of images ? (From: Rob Petrovec via Cocoa-dev <email@hidden>)
 >Re: Concurrent loading of images ? (From: Sandor Szatmari via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: Concurrent loading of images ?
  • Next by Date: Re: Concurrent loading of images ?
  • Previous by thread: Re: Concurrent loading of images ?
  • Next by thread: Re: Concurrent loading of images ?
  • Index(es):
    • Date
    • Thread