#17435: Cythonise path algebra elements
-------------------------------------+-------------------------------------
       Reporter:  SimonKing          |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.5
      Component:  algebra            |   Resolution:
       Keywords:  path algebra       |    Merged in:
  elements                           |    Reviewers:
        Authors:  Simon King         |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  a961dfdfc400b165a05ba8f41a7efcf08c104c84
  u/SimonKing/cythonise_path_algebra_elements|     Stopgaps:
   Dependencies:  #16453             |
-------------------------------------+-------------------------------------

Comment (by SimonKing):

 I just noticed that the letterplace implementation leaks in the following
 example:
 {{{
 sage: L.<x,y,z> = FreeAlgebra(GF(25,'t'), implementation='letterplace')
 sage: p = x^4+x*y*x*z+2*z^2*x*y
 sage: while 1:
 ....:     print get_memory_usage()
 ....:     z = p^7
 }}}
 The corresponding example with path algebras does not leak (one only sees
 that the kill list fills up in the first few iterations):
 {{{
 sage: P =
 DiGraph({1:{1:['x','y','z']}}).path_semigroup().algebra(GF(25,'t'))
 sage: p = sage_eval('x+y*z*x+2*y-z+1', P.gens_dict())
 sage: while 1:
 ....:     print get_memory_usage()
 ....:     z = p^7
 }}}
 That might explain why letterplace is slower than path algebras. In any
 case, fixing the leak should be the purpose of another ticket.

--
Ticket URL: <http://trac.sagemath.org/ticket/17435#comment:16>
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/d/optout.

Reply via email to