Re: switch vs if

From: Chris Powell (darkness@CHESHIRE.GATOR.NET)
Date: 05/03/98

> Questions like that are compiler-dependent, and often
> dependent on what opimization switches are enabled.
> The best way to get your answer is to compile as
> simplified a case as you can to assembly and look at
> the resulting code (assuming your compiler does not
> optimize once assembly is created). Or, you could
> always disassemble from within gdb to see the final
> product.
> Sorry I can't give you the simple "A is faster than B"
> answer.
No problem, I was kind of expecting that answer.  THanks for the info

Chris Powell           * I don't have bugs, I have   * I don't crash, I * randomly developed features * have random reboots

Expect the worst, hope for the best, be thankful for the few errors you get.

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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