Hello Mathieu, On Tue, Mar 01, 2011 at 01:57:04PM +0000, Mathieu Suen wrote: > Neils the objc_msgLookup sound great since it could be even optimize in > gnu-smalltalk with a cache per object,
If you want to safely cache method lookups, you should definitely be using the GNUstep runtime (well, you probably should be anyways) because it provides a slot mechanism that lets you invalidate the cache if the implementation is replaced (e.g. by loading a category). You can look at the "Fast Proxies and Cacheable Lookups" section in the README [0] for information about how that works. Cheers, Niels [0] http://svn.gna.org/svn/gnustep/libs/libobjc2/trunk/README _______________________________________________ Etoile-discuss mailing list [email protected] https://mail.gna.org/listinfo/etoile-discuss
