Re: Multithreading NSBezierPath creation and stroking. Measuring performance
Re: Multithreading NSBezierPath creation and stroking. Measuring performance
- Subject: Re: Multithreading NSBezierPath creation and stroking. Measuring performance
- From: "Sean McBride" <email@hidden>
- Date: Wed, 28 Oct 2009 17:34:45 -0400
- Organization: Rogue Research Inc.
On 10/27/09 2:05 AM, Karolis Ramanauskas said:
>At this point I started optimizing drawing, so I implemented some cacheing,
>etc. and I see significant performance gains. Now my attention is on drawing
>multiple series as can be seen in the picture above. I decided that this is
>a great place to introduce some multithreading (note that I have never done
>any multithreading until two days ago).
Be forewarned that writing correct multithreaded code is hard. Be sure
to read up and what is and is not thread safe. Most of AppKit is not
thread safe.
You might also want to read about "Concurrent View Drawing" here:
<http://developer.apple.com/mac/library/releasenotes/cocoa/appkit.html>
> 2. How do I measure (using instruments, I guess) the performance gain, if
> any?
Both Instruments and Shark can be useful in measuring performance
bottlenecks and testing your improvements.
Good luck!
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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