This depends on the particulars of your code. If you can post the function, we 
can take a look. You can also investigate yourself using the @code_llvm and 
@code_native macros.


> On Oct 2, 2014, at 8:47 AM, [email protected] wrote:
> 
> I have written a bit of code that performs a couple of thousand loops in 
> which some variables have to be squared or cubed.
> As per Performance Tips - Tweaks I wrote these as x*x instead of x^2, but to 
> my surprise I found that my code is actually
> slower (one iteration taking 12.7 instead of 11.7 seconds on average), not 
> faster!
> 
> Is this a peculiarity of my problem or does this tweak refer to a previous 
> release of Julia and is outdated?
> 
> (I'm working on Julia 0.3.0)

Reply via email to