Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Counting Things in Python: A History (treyhunner.com)
5 points by Anon84 on Jan 16, 2021 | hide | past | favorite | 3 comments


Performance as an afterthought is an interesting approach, after all this analysis actually posting the results would be useful.


Results are posted and linked to in the article.

https://gist.github.com/treyhunner/0987601f960a5617a1be


I thought using the get method was the most elegant next to using a counter. Shame he didn't test it for speed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: