logoalt Hacker News

mwkaufmayesterday at 5:41 PM2 repliesview on HN

Why? If those micro benchmarks mattered in your domain, you wouldn't be using python.


Replies

coldteayesterday at 5:52 PM

That's an "all or nothing" fallacy. Just because you use Python and are OK with some slowdown, doesn't mean you're OK with each and every slowdown when you can do better.

To use a trivial example, using a set instead of a list to check membership is a very basic replacement, and can dramatically improve your running time in Python. Just because you use Python doesn't mean anything goes regarding performance.

show 1 reply
PhilipRomanyesterday at 7:41 PM

...and other hilarious jokes you can tell yourself!