ANN.: Beta 1.0 of Weak Reference Extension Module is nowavailable

Alex Martelli aleaxit at yahoo.com
Sun Nov 19 03:39:00 EST 2000


"Karsten Schneider" <k at felinity.com> wrote in message
news:3A176E0F.39BF350B at felinity.com...
    [snip]
> However, I have a question about the implementation. The way I understand
it,
> it hooks into Python's [de-]allocation mechanism to make sure weak
references
> don't point to objects that no longer exist. Does this require a search
> through all the weak references for each deallocation? If so, that sounds
> like a new performance problem.

No!  Only objects that are subject to weak-referencing get their
deallocation-function hooked; there is no overhead for all other
deallocations.


Alex






More information about the Python-list mailing list