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

Reply via email to