#10496: The default call method of maps does not do as promised by the
documentation
-------------------------------+--------------------------------------------
   Reporter:  SimonKing        |       Owner:  robertwb        
       Type:  defect           |      Status:  needs_work      
   Priority:  major            |   Milestone:  sage-4.6.2      
  Component:  coercion         |    Keywords:  generic call map
     Author:  Simon King       |    Upstream:  N/A             
   Reviewer:  David Roe        |      Merged:                  
Work_issues:  speed things up  |  
-------------------------------+--------------------------------------------
Changes (by SimonKing):

  * status:  needs_review => needs_work
  * work_issues:  => speed things up


Comment:

 I think there is yet another way to speed things slightly up.

 If there is coercion then there is a coerce map. Hence, rather than
 testing "self._domain.has_coerce_map_from(P)", one could directly request
 "caller=self._domain.coerce_map_from(P)", and then do "caller(x)" if it is
 not None. That should be faster than doing "self._domain(x)", because the
 call method of "self._domain" would request a coerce map as well!

 I'll test a bit later. So, it will be "needs work" for two hours or so.

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