#15654: PARI discriminant speed depends on stack size
-------------------------------------------------+-------------------------
       Reporter:  jdemeyer                       |        Owner:
           Type:  defect                         |       Status:  new
       Priority:  critical                       |    Milestone:  sage-6.1
      Component:  performance                    |   Resolution:
       Keywords:                                 |    Merged in:
        Authors:                                 |    Reviewers:
Report Upstream:  Reported upstream. No          |  Work issues:
  feedback yet.                                  |       Commit:
         Branch:                                 |     Stopgaps:
   Dependencies:                                 |
-------------------------------------------------+-------------------------
Changes (by jdemeyer):

 * upstream:  N/A => Reported upstream. No feedback yet.


Old description:

> This is weird and bad:
> {{{
> sage: x = polygen(ZpFM(3,10))
> sage: p = ((x-1)^50 + x)._pari_init_()
> sage: %time pari(p).poldisc()
> CPU times: user 52.73 s, sys: 0.00 s, total: 52.73 s
> Wall time: 52.82 s
> 2*3 + 3^4 + 2*3^6 + 3^7 + 2*3^8 + 2*3^9 + O(3^10)
> sage: pari.allocatemem(2<<20)
> PARI stack size set to 2097152 bytes
> sage: %time pari(p).poldisc()
> CPU times: user 0.08 s, sys: 0.00 s, total: 0.08 s
> Wall time: 0.08 s
> 2*3 + 3^4 + 2*3^6 + 3^7 + 2*3^8 + 2*3^9 + O(3^10)
> }}}

New description:

 This is weird and bad:
 {{{
 sage: x = polygen(ZpFM(3,10))
 sage: p = ((x-1)^50 + x)._pari_init_()
 sage: %time pari(p).poldisc()
 CPU times: user 52.73 s, sys: 0.00 s, total: 52.73 s
 Wall time: 52.82 s
 2*3 + 3^4 + 2*3^6 + 3^7 + 2*3^8 + 2*3^9 + O(3^10)
 sage: pari.allocatemem(2<<20)
 PARI stack size set to 2097152 bytes
 sage: %time pari(p).poldisc()
 CPU times: user 0.08 s, sys: 0.00 s, total: 0.08 s
 Wall time: 0.08 s
 2*3 + 3^4 + 2*3^6 + 3^7 + 2*3^8 + 2*3^9 + O(3^10)
 }}}

 '''Upstream''': [http://pari.math.u-bordeaux.fr/cgi-
 bin/bugreport.cgi?bug=1507]

--

--
Ticket URL: <http://trac.sagemath.org/ticket/15654#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to