Trust about D programming.

Walter Bright newshound2 at digitalmars.com
Thu Jan 24 02:20:55 PST 2013


On 1/23/2013 9:10 PM, Era Scarecrow wrote:
>   I remember doing things like that. If I was dividing something by 8 I would
> shift right instead by 3;

Compilers were doing that optimization 35 years ago, and probably decades longer 
than that.

Generally, if you're thinking about doing an optimization, it pays to check the 
output of the compiler, as it has probably beaten you to it :-)


More information about the Digitalmars-d mailing list