On Wednesday, February 18, 2015 at 9:40:48 PM UTC-5, Kuba Roth wrote: 
>
> Interstingly Julia's example using Integer in mod operation is slower: 
> a+=exp(a%2); 
> elapsed time: 0.049916461 seconds (304116 bytes allocated) 


div/rem/mod are currently slower in Julia than C++ because Julia performs 
extra divide-by-zero checks.  See 
https://github.com/JuliaLang/julia/issues/8188 

Reply via email to