A dictionary is a simpler data structure that takes up less space and is a little faster. It should support only a hash table, and OrderedDict supports both a hash table and a linked list.
If you do not need the key order, go to a simpler option.
Also, do not lose sight of the language support for dictations. Itβs easy to type {k1: v1, k2: v2} . This is another victory for dictons. Perhaps unfair, but there you go.
source share