Bill Allombert on Thu, 08 Aug 2013 11:06:06 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Trivial Q, sorry


On Wed, Aug 07, 2013 at 03:53:34PM -0700, zak seidov wrote:
> Dear PARI gurus,
> 
> I use (on a very trivial level)        
> GP/PARI CALCULATOR Version 2.5.3 (released)
>            i686 running mingw (ix86/GMP-5.0.1 kernel) 32-bit version
>                     compiled: Oct  3 2012, gcc-4.6.3 (GCC)
>                (readline not compiled in, extended help enabled)
> 
> in Windows 7. 
> 
> Calcs are trivial but lengthy,
> so one of my Qs
> from point of speed, is
> what is better to use 
> a) variable for some (large integer) constant,
> say a = 123456789987654321
> or
> b) constant 123456789987654321 itself?

I would say performance will be exactly the same.

Cheers,
Bill