Feature or enhancement
Proposal:
Frozenset objects with immutable objects do not need to be tracked by the GC. A similar optimization is already in place for tuples (#48938, #140204).
In particular for longer running programs with immutable frozensets this is benefical.
Linked PRs