• 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: Multithreading NSBezierPath creation and stroking. Measuring performance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Multithreading NSBezierPath creation and stroking. Measuring performance (From: Karolis Ramanauskas <email@hidden>)

  • Prev by Date: Re: Bold and Italic For Dictionary Font Attributes (Hillegass Chapter 20, Challenge 2)
  • Next by Date: Re: Cocoa-dev Digest, Vol 6, Issue 1550
  • Previous by thread: Re: Multithreading NSBezierPath creation and stroking. Measuring performance
  • Next by thread: NSEventTrackingRunLoopMode and mouseDown
  • Index(es):
    • Date
    • Thread