![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: bitwise shift operatorby Moron (Curate) |
on Apr 19, 2007 at 18:12 UTC ( #611012=note: print w/replies, xml ) | Need Help?? |
I can imagine that 2**32 might not be optimised into anything cheaper. 2.1**3.1 would always be expensive for example and you don't expect an interpreter to be looking for a bit-shift optimisation because that would slow ** down even more if one didn;t exist. By comparison, << is a very cheap operator when translated down to machine code level and ** is one of the dearest.
__________________________________________________________________________________
^M Free your mind!
In Section
Seekers of Perl Wisdom
|
|