#7939: shorten doctests in sage/rings/multi_polynomial_ideal.py
-----------------------+----------------------------------------------------
   Reporter:  rlm      |       Owner:  tbd       
       Type:  defect   |      Status:  new       
   Priority:  major    |   Milestone:  sage-4.3.1
  Component:  doctest  |    Keywords:            
     Author:           |    Upstream:  N/A       
   Reviewer:           |      Merged:            
Work_issues:           |  
-----------------------+----------------------------------------------------

Comment(by malb):

 I decided to take another look. In the attached patch I move most of the
 functions in {{{multi_polynomial_ideal.py}}} to the new libsingular
 functions interface which does not need pexpect or IPC in general.

 On my Macbook Pro vanilla Sage 4.3 takes roughly '''48''' seconds to
 doctest {{{multi_polynomial_ideal.py}}}. With the attached patch applied
 it takes '''26''' seconds. I'd expect bigger improvements on machines with
 slow I/O (e.g. disks).

 As a side-effect, a lot of the ideal operations are considerably (100x and
 such) faster now and the libsingular functions interface is more robust
 and handles more functions now.

 Note that I tried to be a bit smart about the creation of the libsingular
 functions. One can now do:

 {{{
 sage: primdecSYZ = sage.libs.singular.ff.primdec.primdecSYZ
 }}}

 which will load 'primdec.lib' first and then create a wrapper for
 {{{primdecSYZ}}} in that library. A referee should also register whether
 he/she likes or dislikes this interface.

 The attached patch requires an updated SPKG which is available at:

 http://sage.math.washington.edu/home/malb/spkgs/singular-3-1-0-4-20100120.spkg

 I didn't mark any doctest {{{#long}}}, in fact, I added some doctests!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7939#comment:4>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.


Reply via email to