OrderedDict implemented in pure Python, so here is the corresponding part of the source:
def __setitem__(self, key, value, dict_setitem=dict.__setitem__): 'od.__setitem__(i, y) <==> od[i]=y'
If the key does not exist, you will create a new list and get access to two elements from the list, which will slow down the work.
source share