DEV Community

Discussion on: How to Merge Two Dictionaries in Python

Collapse
 
renegadecoder94 profile image
Jeremy Grifski

Big O is great, but you'd need to know how these solutions work internally to measure it. That's why we use empirical measurements like the timeit library to get a rough idea of each solution's performance.

Personally, I prefer correctness and readability over performance anyway. If something becomes a major bottleneck, then I would start looking into more performant solutions.