#11115: Rewrite cached_method in Cython
---------------------------+------------------------------------------------
   Reporter:  SimonKing    |          Owner:  jason                
       Type:  enhancement  |         Status:  needs_review         
   Priority:  major        |      Milestone:  sage-4.7             
  Component:  misc         |       Keywords:  category cython cache
Work_issues:               |       Upstream:  N/A                  
   Reviewer:               |         Author:  Simon King           
     Merged:               |   Dependencies:                       
---------------------------+------------------------------------------------

Comment(by SimonKing):

 Hi Nils,

 Replying to [comment:35 nbruin]:
 > Just to make sure that the CPU cache effect is real, I tried a little
 example

 Thank you for your clear explanation! I am currently testing some
 variations of my patch: Both for parents and for elements, one may or may
 not have `__cached_methods` - if one has, then it can always inherit
 cached methods from the category framework. And if one has the attribute,
 then one may or may not search it in the `__getattr__` method - if one
 does then the speed penalty for missing attribute assignment is reduced.

 I can already confirm that the timings are affected by the presence of the
 attribute. But I first need to finish my tests.

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