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;
In reply to Re: Re: Optimizations and Efficiency
by BMaximus
in thread Optimizations and Efficiency
by dimmesdale
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |