#13441: refactor gcd
------------------------------------+---------------------------------------
       Reporter:  saraedum          |         Owner:  AlexGhitza
           Type:  task              |        Status:  needs_work
       Priority:  trivial           |     Milestone:  sage-5.4  
      Component:  basic arithmetic  |    Resolution:            
       Keywords:                    |   Work issues:            
Report Upstream:  N/A               |     Reviewers:            
        Authors:  Julian Rueth      |     Merged in:            
   Dependencies:                    |      Stopgaps:            
------------------------------------+---------------------------------------

Comment (by saraedum):

 Replying to [comment:10 saraedum]:
 > So there is actually a speed penalty. This seems to be caused by a bug
 in {{{coerce_binop}}}:
 >
 > {{{
 > sage: x.gcd
 > <sage.structure.element.NamedBinopMethod object at 0x1bc255f0>
 > sage: x.gcd
 > <sage.structure.element.NamedBinopMethod object at 0x1bc27290>
 > }}}

 This is just how decorators work on methods (if they don't do tricks like
 cached_method) - the {{{__get__}}} has to create a new instance on every
 call.

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