• 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: Instantly delete a directory without recursion?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Instantly delete a directory without recursion?


  • Subject: Re: Instantly delete a directory without recursion?
  • From: Shawn Erickson <email@hidden>
  • Date: Tue, 5 Oct 2010 13:29:08 -0700

On Tue, Oct 5, 2010 at 12:48 PM, Michael Watson <email@hidden> wrote:
> You should /always/ perform I/O on a secondary thread whenever possible. Every I/O you perform on the UI thread is an opportunity for hangs or unresponsiveness. Grand Central Dispatch is your friend here.

Maybe better said in an "you should always perform IO in an async
fashion, aka never block user interaction with IO (or other
potentially long running tasks)". Various APIs provide async modes
without having to deal with threads however the task model of GCD and
the related high-level APIs that have been retooled to use it work
well for this.

-Shawn
_______________________________________________

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: 
 >Instantly delete a directory without recursion? (From: Oleg Krupnov <email@hidden>)
 >Re: Instantly delete a directory without recursion? (From: Oleg Krupnov <email@hidden>)
 >Re: Instantly delete a directory without recursion? (From: Guillem Palou <email@hidden>)
 >Re: Instantly delete a directory without recursion? (From: Oleg Krupnov <email@hidden>)
 >Re: Instantly delete a directory without recursion? (From: Guillem Palou <email@hidden>)
 >Re: Instantly delete a directory without recursion? (From: Michael Watson <email@hidden>)

  • Prev by Date: Re: Problem with MakeKeyandOrderFront
  • Next by Date: Re: Problem with MakeKeyandOrderFront
  • Previous by thread: Re: Instantly delete a directory without recursion?
  • Next by thread: Re: Instantly delete a directory without recursion?
  • Index(es):
    • Date
    • Thread