Fast switch statement

Steve Kucera stevenkucera at gmail.com
Wed Apr 3 18:06:44 PDT 2013


Hi,

I am using DMD 2.062 on Windows 7 64-bit.

I am writing performance critical functions that need switch 
statements to use an indirect jump table... current I'm analysing 
the assembly dump, and the code is compiled to nested ifs 
instead. This happens with switch and final switch. Is there any 
way to force the compiler to use a jump table?

Steve


More information about the Digitalmars-d-learn mailing list