Fastest way to fill large number of dicts I have the following function, that creates a large number of dict entries that describe cubes: