gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changes I've been thinking of...


From: Richard Frith-Macdonald
Subject: Re: Changes I've been thinking of...
Date: Sat, 10 Oct 2009 07:22:32 +0100


On 9 Oct 2009, at 23:45, Fred Kiefer wrote:

David Chisnall schrieb:


  Another example is that a lot of classes call
NSDeallocateObject(self) rather than [super dealloc], which has a
negligible performance impact but breaks any category that tries to
replace NSObject's dealloc method.

I never understood why we do this.

A lot of what looks like premature optimisation nowadays was benchmarked or profiled and found to be worthwhile on slower CPUs ten years ago. I can't believe that more than a few dozen cases of this particular issue exist anymore in GNUstep (perhaps I'll try grepping and fixing). I definitely think it should go (I hated the fact that it was totally pervasive in Cocotron when I looked at their code).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]