Re: GCD killed my performance
Re: GCD killed my performance
- Subject: Re: GCD killed my performance
- From: Jens Alfke <email@hidden>
- Date: Fri, 25 Apr 2014 22:22:44 -0700
On Apr 25, 2014, at 5:42 PM, Roland King <email@hidden> wrote:
> They can be very useful finding places where everything blocks waiting for one piece of code to execute, or you ping madly from thread-to-thread, queue-to-queue.
Thanks, that sounds very useful. I’lll give it a try when I dive back into this.
Today I got the GCD-enabled code almost back up to the performance it had on iOS before it was thread-safe and parallel. Still counts as a victory, because with more cores (as on my Mac) it’s a lot faster. Some of the speed came from not using dispatch_async for trivial blocks, some from fixing bugs in my code, some from allocating fewer objects… Slowly chipping away at it and making little gains one at a time.
—Jens
_______________________________________________
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