Open xcaruso opened 7 years ago
This is already way too slow:
sage: K = GF(125)
sage: R = K['t']
sage: L = [K.random_element() for _ in range(10**5)]
sage: %timeit [c.polynomial() for c in L]
1 loop, best of 3: 7.32 s per loop
sage: KK = GF(125, impl="pari_ffelt")
sage: RR = KK['t']
sage: LL = [KK.random_element() for _ in range(10**5)]
sage: %timeit [c.polynomial() for c in LL]
1 loop, best of 3: 13.7 s per loop
There is a lot of python overhead to do magic conversion btw different C implementations. So unless we implement special methods to go back and forth specific implementations it looks hard to tackle that one in a generic way.
Changed keywords from sd87 to sd87, padicIMA
On my laptop, it takes almost 1 second to create a polynomial of degree 10000 over F_125:
while computing its square takes only 40ms:
CC: @jpflori
Component: finite rings
Keywords: sd87, padicIMA
Issue created by migration from https://trac.sagemath.org/ticket/23470