Ilya Zakharevich on Fri, 15 Dec 2023 05:12:27 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Powers too slow? |
On Thu, Dec 14, 2023 at 06:40:37PM -0800, Ilya Zakharevich wrote: > It seems that some powers take 2x the time they should take: > > (18:31) gp > localprec(1111111); 1111111^(31/10); > time = 453 ms. > (18:31) gp > localprec(1111111); 1111111.^(1/10)*1111111^3; > time = 234 ms. Oups, this mixes integers and floating point bases! However, with pure integer bases this only becomes slightly more pronounced. With pure floating point bases there is a weaker 1.75x slowdown. Sorry, Ilya