#14214: Cythoned homsets
----------------------------------------------+-----------------------------
       Reporter:  SimonKing                   |         Owner:  tbd             
                 
           Type:  enhancement                 |        Status:  needs_work      
                 
       Priority:  major                       |     Milestone:  sage-5.10       
                 
      Component:  performance                 |    Resolution:                  
                 
       Keywords:  Hom, cython, cached method  |   Work issues:  How to store 
domain and codomain?
Report Upstream:  N/A                         |     Reviewers:                  
                 
        Authors:  Simon King                  |     Merged in:                  
                 
   Dependencies:  #14159, #12951, #13184      |      Stopgaps:                  
                 
----------------------------------------------+-----------------------------

Comment (by nbruin):

 Replying to [comment:48 nbruin]:
 > > I asked whether it'd make sense to cythonize lazy_attribute. I think
 it does not, because we want to override `__name__` of an instance which
 won't work in a cdef class.

 Actually, I think this is of very limited value anyway. You have to work
 very hard to get your hands on a descriptor, let alone its `__name__`,
 because its very nature makes that most attempts will result in executing
 the descriptor and getting its result. You really have to go digging into
 dictionaries to get the descriptor object itself. By the time you have
 succeeded at that, you can probably get at attributes on the object too,
 so having the "__name__" won't be of huge value.

 The main disadvantage of descriptors versus no-arg methods is that it's
 hard put documentation on them that's accessible. The big advantage is of
 course that they're faster.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14214#comment:49>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to