No, it's got to do with it being a completely unrealistic case of 1 instance per class for 1e6 classes! Of course then translating a dict with 1e6 keys to a list will dominate.