discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Gnustep on alpha linux


From: Richard Frith-Macdonald
Subject: Re: Gnustep on alpha linux
Date: Wed, 19 Feb 2003 17:06:24 +0000


On Wednesday, February 19, 2003, at 04:39  pm, David Ayers wrote:
Try to replace it with this:

static NSComparisonResult compare(id elem1, id elem2, void* context)
{
 NSComparisonResult (*imp)(id, SEL, id);

 imp = (NSComparisonResult (*)(id, SEL, id))
   [elem1 methodForSelector: context];
 return (*imp)(elem1, context, elem2);
}

I'm not sure what the hit in overall performance is or wheter that is in issue. Richard?

It's not an issue performance should be identical barring compiler oddities ...
the code you suggest is simply better than the existing code.





reply via email to

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