discuss-gnustep
[Top][All Lists]
Advanced

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

Re: objective-c: how slow ?


From: Erik M. Buck
Subject: Re: objective-c: how slow ?
Date: Fri, 7 Sep 2001 15:27:50 -0500

> I admit I don't know in detail the lookup mechanism in the objc runtime
> but I suppose that rebuilding the sarray after a inheritance change would
be
> very expensive. Multiple inheritance requres a resoulution when the same

As long as the instance variable layout does not change, dynamically
changing the super class of an existing class is one pointer operation.
Each class object has a "superclass" variable.  The message cache tables are
per-class (At least in my runtime and Apple's runtime) so changing a
superclass automatically changes the method cache with no extra effort.





reply via email to

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