KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
My question is why does python use both reference counting and mark-and-sweep for gc? Why not only mark-and-sweep? My initial guess is that using reference counting can easily remove non-cyclic referenced objects, this may somewhat speed up mark-and-sweep and gain memory immediately. Don't know if my guess is right? Any thoughts? Thanks a lot.
Tags (comma-separated)
Save Edits
Cancel