Accessing dataset is very slow compared to torchvision

related (same?) topic: Why is simply accessing dataset features so slow?