Re: to be effcient or not to be efficient

Steve Lhomme <[email protected]>
Newsgroups gmane.comp.multimedia.media-api
Message-ID <[email protected]>
Tuukka Toivonen wrote:

> On Wed, 7 Jan 2004, Tuukka Toivonen wrote:
> 
> 
>>Actually I'm surprised if an optimizing C compiler can't do it
> 
> 
> Just checked: gcc-2.95.4 can do it automatically, without even any
> optimization. So use large switch...case without fear, C compiler can
> optimize it into a single table lookup and a jump.

Good. That's also what I thought. I don't think a switch/case has much 
CPU hit. Unless you have a good way to reduce the (growing) number of 
possible messages.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.