#13840: IntegerListsLex speedup
-----------------------------+----------------------------------------------
   Reporter:  tscrim         |             Owner:  sage-combinat               
       Type:  enhancement    |            Status:  new                         
   Priority:  major          |         Milestone:  sage-5.6                    
  Component:  combinatorics  |          Keywords:  optimization, integerlistlex
Work issues:                 |   Report Upstream:  N/A                         
  Reviewers:                 |           Authors:  Travis Scrimshaw            
  Merged in:                 |      Dependencies:                              
   Stopgaps:                 |  
-----------------------------+----------------------------------------------
 This patch speeds up `IntegerListsLex` by removing calls to sage's
 `infinity` and has `max_slope` and `min_slope` set to `None` and has
 `max_part` default to `float(infinity)`.

 Before the patch:
 {{{
 sage: time p = Partitions(150, max_slope=-1, length=15).list()
 Time: CPU 14.04 s, Wall: 14.64 s
 }}}
 After:
 {{{
 sage: time p = Partitions(150, max_slope=-1, length=15).list()
 Time: CPU 2.86 s, Wall: 2.98 s
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13840>
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