Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: OT: switch Statement Performance Consideration

Author: Ulrich Tuerke

Date: 06:05:20 09/02/02

Go up one level in this thread


On September 01, 2002 at 20:46:55, Pham Hong Nguyen wrote:

>The following article and discussion may be useful for you!
>
>http://www.codeguru.com/cpp_mfc/switch.html

I have once looked to the assembly code of a "switch" statement generated on a
unix RISC platform. This was basically a sequence of if ... else if ...  ... .

However, on CISC platforms, the "switch" statement will be often implemented
more performance friendly.

Uli



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.