Are weak refs slower than strong refs?

John Nagle nagle at animats.com
Sun Feb 25 01:17:01 EST 2007


   Are weak refs slower than strong refs?  I've been considering making the
"parent" links in BeautifulSoup into weak refs, so the trees will release
immediately when they're no longer needed.  In general, all links back
towards the root of a tree should be weak refs; this breaks the loops
that give reference counting trouble.

				John Nagle



More information about the Python-list mailing list