struct
-like objects, i.e. ones that are largely the same as a Cstruct
instance, win in the memory department.- These tests do not try to determine what is best for very large sets of values, however; I direct the reader to http://stackoverflow.com/a/2670191 for an insight into that scenario when using a dictionary.
- Dictionaries beat out objects in access times.
- According to Wikipedia, the Python dictionary is highly optimised because it is used internally to implement namespaces. [citation needed]