Re: [CODE] act() vs. send_to_char()

From: Marc Gale (MARC@BGC.AC.UK)
Date: 08/07/98


> I'm fairly new at Circle, fairly new at C itself as a matter of fact,
> so this question may have a fairly obvious answer to some of you.
>
> I was just wondering, what is the difference between these two
> statements:
>
> 1. send_to_char("CircleMUD is great!", ch);
>
> 2. act("CircleMUD is great!", FALSE, ch, 0, 0, TO_CHAR);
>
In appearance, nothing.  However, number 1. is faster as it doesn't
use a procedure that is attempting to deal with many parameters.

If you use act() to send simple text to a character, you will start
to slow your mud down.

Marc


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST