Re: Class.c

From: Dante Mavec (bumster@paci-labs.com)
Date: 06/21/02


> But that's not a switch(), it's a bunch of if...else.  You were talking
> about switch the language construct, or were you trying to be more broad?.
> The switch statements are worse because they have large numbers of
> different values while backstab_mult() just has a very few branches. And
> backstab_mult() is used even less frequently the saving throws table.

The comment is directly after the whole pile of switch statements used for
the saving throws and exp tables.
It uses an equation instead of a whole pile of switches.

I assumed that the comment implied that switches were faster than equations.
Was I wrong?

 - Dante

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT