gcc

Speeding up large switches and if-elses

What can I do to improve large switches and if-elses speed manually? I will probably need some kind of hash or lookup table. I'm working with gcc and C code, I doubt that gcc has any inbuilt optimizations for this. Edit: My switch code is what every switch looks like, do something based on if a particular int is some value. My if-elses...