#8611: speed up cached_function and cached_method
-----------------------------------+----------------------------------------
   Reporter:  jason                |       Owner:  tbd       
       Type:  enhancement          |      Status:  needs_work
   Priority:  major                |   Milestone:  sage-4.6.1
  Component:  misc                 |    Keywords:            
     Author:  Jason Grout          |    Upstream:  N/A       
   Reviewer:                       |      Merged:            
Work_issues:  Patch doesn't apply  |  
-----------------------------------+----------------------------------------

Comment(by SimonKing):

 Hi Jason,

 Note also that your patch would break the cache in the case of
 default/named arguments. Namely, when you have a function `def f(n=3):
 return n^2` then the values of `f()`, `f(3)` and `f(n=3)` should be
 identical, but they aren't when you have a special case for `f()`.

 The patch that I am now preparing is quite thorough, attacking several
 spots that created overhead. It can now nearly compete with manual
 caching. I am currently adding more doctests and hope that I will be able
 to provide a patch later today.

 Best regards,

 Simon

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