3 ms·
Great post. I almost did a spit take when I read: > Timsort overcomes this disadvantage by being written in C rather than Python. Yeah, Python is SLOW. Thankf
by forrestthewoods 5y ago
Great post. I almost did a spit take when I read:
> Timsort overcomes this disadvantage by being written in C rather than Python.
Yeah, Python is SLOW. Thankfully the author dug into C. That was nice to see.
Edit: lol I have no idea why this is being downvoted. Y’all weird.
- ww520 5y agoThat's what I suspected when reading the first part of the post where it states that heapq.merge() is slower than sort(). Hmm, isn't it comparing Apple to Orange since heapq.merge() is implement in Python and the system sort() would be in C?