Re: semantics of init
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.