3 ms·
Counting Things in Python: A History
- wodenokoto 6y agoI thought using the get method was the most elegant next to using a counter. Shame he didn't test it for speed.
- antman 6y agoPerformance as an afterthought is an interesting approach, after all this analysis actually posting the results would be useful.
- wodenokoto 6y agoResults are posted and linked to in the article. https://gist.github.com/treyhunner/0987601f960a5617a1be https://gist.github.com/treyhunner/0987601f960a5617a1be