Re: objective-c / cocoa efficiency
Re: objective-c / cocoa efficiency
- Subject: Re: objective-c / cocoa efficiency
- From: Annard Brouwer <email@hidden>
- Date: Wed, 9 Mar 2005 12:06:59 +0100
I do agree that your code is readable and the TextExtras code takes
some time to grok. But as other people said on this list, there is only
one way to find out and that is by measuring the performance (by using
Shark for instance).
Personally, I think the arguments that were made against you are not
making much sense unless there is a proven need for optimisation.
Readability and maintainability are much more important. Especially for
an open source project where other people will look and possibly
enhance your code.
One tip: [this used to be true in the good old days of OpenStep] custom
NSCharacterSet objects tended to be quite costly to create and I turned
them into class variables that would be lazily instantiated.
Good luck!
Annard
On 9 Mar 2005, at 10:46, b a r t o n wrote:
Thanks for that - I actually looked at TextExtras early on and while
it does work very nicely it is not as readable as the objective-c.
Does it really cost that much more to use these objects? I mean the
whole window system is already using Cocoa and one can not circumvent
that with C - there must be a reason for that.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden