Re: ObjC in time-critical parts of the code
Re: ObjC in time-critical parts of the code
- Subject: Re: ObjC in time-critical parts of the code
- From: Justin Carlson <email@hidden>
- Date: Sun, 18 Jan 2009 21:34:36 -0600
On Jan 18, 2009, at 8:23 PM, Bill Bumgarner wrote:
On Jan 18, 2009, at 6:05 PM, Justin Carlson wrote:
I have also seen (unspecified) system libraries worsen considerably
over time - 'faster over the course of OS releases' is not as sunny
as I once believed. Believing system libraries will get faster is
dangerous.
You have filed bugs against said regressions? Performance
regressions are serious business. Send me the bug #s offlist. I
would like to track them.
Not all of them, though some of the bigger ones were reported and/or
mentioned along the way. I'd rather not spend time digging up old
bugs. Some have been fixed, some have not. Oh well, there is always
the next release.
Spending loads of engineering time re-inventing the wheel is folly.
It often isn't faster, is generally buggier, and consumes a ton of
time that could be better used actually shipping something.
Hmmmm... that's a generalization. It's true that it can be time
consuming, but it's really not tough to outdo a program by isolating
the behaviour you need. Who's to say one person's implementation of
what is provided by a system library function is better than yours -
for the problem at hand? If it is time critical, it is really not
uncommon for a good optimizer to make a specific implementation which
outperforms a generic system implementation - several times over.
Not to be meant as an insult to anyone's engineering skills on this
list. Simply that if you were to focus as much time on optimizing
and debugging an algorithm found in a system library as the
engineers who wrote and now maintain said library, you are unlikely
going to have enough time left over to ship your product.
b.bum
Optimization is learned, and it takes time to learn.
Best,
J
_______________________________________________
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