• 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: Slow Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slow Cocoa


  • Subject: Re: Slow Cocoa
  • From: Allan Odgaard <email@hidden>
  • Date: Tue, 17 Feb 2004 01:10:11 +0100

On 16. Feb 2004, at 23:58, Public Look wrote:

In general, allocating and deallocating objects is very expensive. It is all built on top of malloc() and free() [...]

Not that I disagree about memory allocation being rather expensive, but to be exact, objects are allocated from NSZone's -- one can create an NSZone which doesn't maintain a freelist and thus it should be very fast, though I would still think it does a mutex lock to work with multi-threaded applications (but it will not need to do a first/best/worst-fit search on each allocation).
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: Slow Cocoa (From: "Tregaskis, Wade" <email@hidden>)
 >Re: Slow Cocoa (From: Public Look <email@hidden>)

  • Prev by Date: Apps whitout nib
  • Next by Date: Re: how to save styled text
  • Previous by thread: Re: Slow Cocoa
  • Next by thread: how to open Finder's connect to server screen
  • Index(es):
    • Date
    • Thread