we have a ticket to upgrade Pari to the latest version, 2.13, but it needs work.
On Wed, 3 Feb 2021, 14:11 John Cremona, <john.crem...@gmail.com> wrote: > I was looking again at https://trac.sagemath.org/ticket/25934 and now > think that the issue is more serious than first suggested. The > immediate problem noticed was that after defining a sextic field and > creating the unit ideal, it took a very long time to display, and the > discussion side-tracked onto whether or not to call pari's bnfinit > function to properly initialise the number field structure, the > assumption being that that call was what was taking the time. Well it > is, but it should not be! > > In fact, pari's bnfinit is very fast in this case, as you can tell > from switching to %gp: > > sage: %gp > --> Switching to PARI/GP interpreter <-- > pari: K = bnfinit(y^6 - y^5 - 5*y^4 + 4*y^3 + 6*y^2 - 3*y - 1); > pari: ## > *** last result computed in 24 ms. > > But doing the same in Sage: > > sage: y = polygen(QQ, 'y') > sage: f = pari(y^6 - y^5 - 5*y^4 + 4*y^3 + 6*y^2 - 3*y - 1) > sage: %time f.bnfinit() > CPU times: user 1min 9s, sys: 144 ms, total: 1min 9s > Wall time: 1min 9s > > The clincher is that if you run the previous lines (in a fresh > session) and interrupt the last line immediately, and then run it > again, it returns immediately. > > I don't know the libpari interface well enough to go further, but I > hope someone does. (Jeroen, we miss you!) > > John > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/CAD0p0K5UUXrW8-CvrxdiSM-tziweO7wh1u4LGamgyP1Uk6xmdA%40mail.gmail.com > . > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq03P%2BgsHd4-T6eeZvFQxzVzU2ZeUt3qtCTcN-SMFrKBJA%40mail.gmail.com.