Thanks. I've made a trac ticket for this: http://trac.sagemath.org/sage_trac/ticket/2090
On Feb 7, 2008 11:30 AM, Marshall Buck <[EMAIL PROTECTED]> wrote: > > (sage 2.10 on X86 linux.) > > Suppose you define the ring of polynomials over GF(2): > > R.<x> = GF(2)[] > > Then a simple polynomial like > > f = x^32000 > > takes time quadratic in the degree to construct. > Meanwhile, the left shift operator will construct the polynomial > almost instantly: > > f = x << (32000 - 1) > > Also, constructing from a list of coefficients takes quadratic time if > most of the coefficients are zero. > > For example > > f = R( [1]+ 32000*[0] + [1]) > > is very slow, but a dense list is fast: > > f = R(32000*[1]) > > > > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---