#11342: Make getattr faster on parents and elements
---------------------------+------------------------------------------------
   Reporter:  SimonKing    |          Owner:                        
       Type:  enhancement  |         Status:  needs_work            
   Priority:  major        |      Milestone:  sage-4.7.2            
  Component:  performance  |       Keywords:  getattr parent element
Work_issues:               |       Upstream:  N/A                   
   Reviewer:               |         Author:  Simon King            
     Merged:               |   Dependencies:  #9944                 
---------------------------+------------------------------------------------

Comment(by vbraun):

 Looks like pari is to blame:
 {{{
 self = x^2 + 1 type = <type
 'sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint'>
 self._parent = Univariate Polynomial Ring in x over Rational Field type =
 <class
 'sage.rings.polynomial.polynomial_ring.PolynomialRing_field_with_category'>
 self._parent._category = Category of euclidean domains
 self = x^2 + 1 type = <type
 'sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint'>
 self._parent = Univariate Polynomial Ring in x over Rational Field type =
 <class
 'sage.rings.polynomial.polynomial_ring.PolynomialRing_field_with_category'>
 self._parent._category = Category of euclidean domains
 self = 0 type = <type 'sage.libs.pari.gen.gen'>
 self._parent = None type = <type 'NoneType'>
 
/home/vbraun/opt/sage-4.7.1.rc2/local/lib/libcsage.so(print_backtrace+0x31)[0x7fe0b9a3c242]
 
/home/vbraun/opt/sage-4.7.1.rc2/local/lib/libcsage.so(sigdie+0x14)[0x7fe0b9a3c274]
 
/home/vbraun/opt/sage-4.7.1.rc2/local/lib/libcsage.so(sage_signal_handler+0x20c)[0x7fe0b9a3bec2]
 /lib64/libpthread.so.0[0x389c20eef0]
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11342#comment:31>
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