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 s...@rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com