swarm-support
[Top][All Lists]
Advanced

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

Re: ObjC + Java


From: Marcus G. Daniels
Subject: Re: ObjC + Java
Date: 20 Apr 2001 14:21:26 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "PT" == Pietro Terna <address@hidden> writes:

PT> Would the solution number 2 increase in a heavy way the execution time?

You would only use #2 if there were just two or three methods that
you'd ever use.  The setup for FArguments/FCall can be up to ten
lines of code and if you did that inline it would be expensive.  If you
are just calling the same method over and over again you can cache
the set up much like you'd cache an IMP, e.g.:

 func = [self methodFor: M(someMethod)];
 func (self, M(somemethod));

#1 is the Right Thing for a general tool.

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

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