• 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: GCD killed my performance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCD killed my performance


  • Subject: Re: GCD killed my performance
  • From: Dave Fernandes <email@hidden>
  • Date: Sat, 26 Apr 2014 18:29:19 -0400

On Apr 26, 2014, at 5:36 PM, Jens Alfke <email@hidden> wrote:

>> OS X implemented GCD at kernel level which introduced lots of syscalls which are super expensive. The old school method is largely user land so it may help a little by keeping syscalls to a minimum. @synchronized uses Objective-C runtime functions which was once code behind those old school classes.
>
> That's the opposite of what the docs say: "A dispatch semaphore works like a traditional semaphore, except that when the resource is available, it takes less time to acquire a dispatch semaphore. The reason is that Grand Central Dispatch does not call into the kernel for this particular case. It calls into the kernel only when the resource is not available and the system needs to park your thread until the semaphore is signaled.” —Concurrency Programming Guide

They say this for dispatch semaphores, but it doesn’t necessarily apply to dispatch queues. (If I were less lazy, I suppose I could check the source.)
_______________________________________________

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: GCD killed my performance (From: Jonathan Taylor <email@hidden>)
 >Re: GCD killed my performance (From: Jens Alfke <email@hidden>)
 >Re: GCD killed my performance (From: Seth Willits <email@hidden>)
 >Re: GCD killed my performance (From: Kyle Sluder <email@hidden>)
 >Re: GCD killed my performance (From: Quincey Morris <email@hidden>)
 >Re: GCD killed my performance (From: ChanMaxthon <email@hidden>)
 >Re: GCD killed my performance (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: GCD killed my performance
  • Next by Date: Re: ARC Retain Cycles
  • Previous by thread: Re: GCD killed my performance
  • Next by thread: Re: GCD killed my performance
  • Index(es):
    • Date
    • Thread