in reply to Re: Optimizations and Efficiency
in thread Optimizations and Efficiency
Any good compiler would optimise this for you into this$x = $y * 16;
C and C++ compilers do it automaticaly in the preprocessor. I don't see why Perl wouldn't do it either unless that it was seen that it wasn't needed or that it hasn't been put in yet.$x = $y << 4;
|
---|