[virtmach] Your VM
Durchholz, Joachim
virtmach@iecc.com
Tue, 29 May 2001 12:14:07 +0200
> From: Thaddaeus Frogley [mailto:thaddaeus.frogley@creaturelabs.com]
>
> > large switch case statement,
>
> An unmaintainable nightmare. This was the implementation of
> choice when I
> joined the project, but it was becoming unmanageable, so was
> reimplenmented
> as a dispatch table.
I have heard that some teams generate the switch statement as part of the
build process.
Note that gcc tends to take a long time optimizing large switches (hundreds
of cases), so the generated switch should be broken into smaller chunks if
you do that.
Regards,
Joachim
--
This is not an official statement from my employer.