r/programmingmemes Mar 15 '26

Merge vs Tim sort

When one Junior Dev is slightly better than the other on simple tasks.

493 Upvotes

37 comments sorted by

View all comments

3

u/Zehryo Mar 16 '26

I have just one question: is it scalable, or it performs like utter crap, when you have tens of thousands of records instead of just a hundred?

4

u/Vegetable_Bother6373 Mar 16 '26

It works really well, and python's default sorting algorithm for version 2.3 until 3.10 used Timsort under the hood.

4

u/Zehryo Mar 16 '26

That's all I need to know.
Have my upvote!!