• 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: semantics of init
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: semantics of init


  • Subject: Re: semantics of init
  • From: Marcel Weiher <email@hidden>
  • Date: Wed, 4 Jun 2003 19:42:28 +0200

On Wednesday, June 4, 2003, at 04:32 Uhr, Daniel Zitter wrote:


Another problem I'm seeing with this approach is performance - I don't
think ObjC messages can be inlined, by definition, so every [self xxx]
call is an extra expense you could probably do without. Plus, it may
muck up your object's initial message cache, by using a bunch of setter
methods that don't otherwise get used. So you'd see an extra
performance loss, initially.


I don't buy the argument that the use of setter methods in -init would substantially degrade performance.
This smells like premature optimization to me.

You've got a well-developed olfactory organ there ;-)

Regards,

Marcel

--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
f0249ab8b1af193ef5addcf39fdff5ca
_______________________________________________
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.

  • Follow-Ups:
    • Re: semantics of init
      • From: "Cameron S. Bahan" <email@hidden>
References: 
 >Re: semantics of init (From: Daniel Zitter <email@hidden>)

  • Prev by Date: NSDocument help
  • Next by Date: Force Finder to update *All* files within a folder (Slightly Off Topic)
  • Previous by thread: Re: semantics of init
  • Next by thread: Re: semantics of init
  • Index(es):
    • Date
    • Thread