> The disadvantage is that you have n^2 jumps, which make compilation> slower, and lower the number of VM instructions you can use (although> probably not dramatically). Also, you have n replicas of the jump> tables, which may increase the data cache miss rate.

I got a new Core 2 Duo machine with 4MB cache not too long ago. I'll
have to try your benchmarks out on that system some day.

> Well, maybe the gcc guys will work hard to undo> the replication and make the replicated switch technique just as slow> as the ordinary switch dispatch.

Lets just hope they don't try to "improve" things once again like they
did between 2.95 and 3.x.

> AFAIK you are the first to invent this technique. Whom should I> attribute it to? moron451-compil...@yahoo.com does not sound so> great:-)

Yea I know :P Moron451 is a throwaway alias to defend against spam.
Emails still come to my main email account but if Moron451 starts
getting hit with too much spam then the alias gives me more options to
keep the spammers at bay. I emailed you the other day on my main
account asking if modern processors and improved compilers were making
threaded code obsolete. Thanks for all of your quick responses by the
way!