OrderedDict in Python-question-4

Last Updated :
Discuss
Comments

Which of the following statements is true regarding the performance of OrderedDict compared to standard dict?

OrderedDict is faster for all operations

OrderedDict is slower due to its underlying implementation

Both have the same performance characteristics

OrderedDict is faster only for key retrieval

Share your thoughts in the comments