Making generalized Trie type in D

Marco Leise Marco.Leise at gmx.de
Thu Jul 19 10:16:41 PDT 2012


Am Mon, 04 Jun 2012 23:18:31 +0400
schrieb Dmitry Olshansky <dmitry.olsh at gmail.com>:

> Compiler is like a nasty 
> stepchild it will give up on generating good old jump tables given any 
> reason it finds justifiable. (but it may use few small jump tables + 
> binary search, could be fine... if not in a tight loop!)

Looks, like you are back in control.

From http://gcc.gnu.org/gcc-4.7/changes.html :

** General Optimizer Improvements **

Support for a new parameter --param case-values-threshold=n was added to allow users to control the cutoff between doing switch statements as a series of if statements and using a jump table.

-- 
Marco



More information about the Digitalmars-d mailing list