On Feb 4, 5:23 pm, Nils Bruin <nbr...@sfu.ca> wrote:

> Note: the time-critical thing for us is to access the reference of a
> weakref. We currently do that via a normal method lookup, but using
>
> PyWeakref_GetObject
>
> would be WAY faster. Question: If we have a KeyedRef object (which
> inherits from "ref"). Would it be safe to just call
> PyWeakref_GetObject on it?

Answer: yes it is safe and it does give a modest but noticeable
improvement. See
http://trac.sagemath.org/sage_trac/ticket/13387#comment:12

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to