Tim Peters <tim.one@comcast.net> writes: > Half of a shadow of an idea: at least in my code, it's common to have > gazillions of tuples, and they almost always contain just strings and > numbers. Since they're immutable, they'll never contain anything else. So > they could get unlinked from cyclic gc entirely without ill effect (it's not > possible that they could ever be in a cycle). Perhaps a gen2 collection > could learn something about this and automagically untrack them. That could happen in gen0 already: when traversing an object, watch whether it contains any tracked objects. If it doesn't, invoke tp_is_immutable, if that returns true, untrack it. Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4