Trust about D programming.

Paulo Pinto pjmlp at progtools.org
Thu Jan 24 08:34:52 PST 2013


Am 24.01.2013 11:20, schrieb Walter Bright:
> 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 :-)


It helps to have a broader experience in many languages.

I think C only developers tend to suffer from premature optimization 
disease. :)

--
Paulo


More information about the Digitalmars-d mailing list