Issue #17936: Fix O(n**2) behaviour when adding or removing many subclasses of a given type.
2 files changed