swarm-support
[Top][All Lists]
Advanced

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

RE: FAction


From: Fred Wan
Subject: RE: FAction
Date: Thu, 7 Sep 2000 16:43:06 +0200

I have replaced the action creation procedure through FAction instances by
Action instances for jheatbugs and it works fine as well. Even to the extent
that I'm wondering what the (time) benefit is for using FAction (as was
replied to my query, FAction supposedly offers the advantage of reducing the
number of indirections) which brings me to the following question. Are there
methods in Swarm to measure real-time performance to make optimizations in
the code visible?

Below is the code fragment using FAction (commented out) and Action.

    /*
    try {
      Heatbug proto = (Heatbug) heatbugList.get (0);
      Selector sel =
        new Selector (proto.getClass (), "heatbugStep", false);
      actionForEach =
        modelActions.createFActionForEachHomogeneous$call
        (heatbugList,
         new FCallImpl (this, proto, sel,
                        new FArgumentsImpl (this, sel, true)));
    } catch (Exception e) {
      e.printStackTrace (System.err);
    }
    */

    try {
        Selector sel = new Selector(Class.forName("Heatbug"), "heatbugStep",
false);
        modelActions.createActionForEach$message(heatbugList, sel);
    } catch (Exception e) {
        System.err.println("Exception heatbugStep: " + e.getMessage());
    }



                  ==================================
   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]