Hacker News new | ask | show | jobs
by zozbot123 2664 days ago
Both 3.7 and 3.8 have so many performance improvements. But still, what people like most about Python is code readability. Performance isn't as important as in the past, because of how hardware performance has scaled.
3 comments

Very true, but it does let me make stuff faster than my co-workers who are using C++.. without their "well python is so slow" argument from ten years ago.
It is extremely unlikely (I actually wanted to say "never" but many people were bitten for using that word) that Python will be faster than C++.

So if the hope of being fast keeps you with Python, you choose the wrong language.

You can't take advantage of the hardware improvements if you're not using all cores.
Well, with multiprocessing you actually do.
wait, hardware performance hasn't really progressed much in the last 10 year!
Not CPUwise. But they have increased the number of CPUs available and that's where python has problems because of the GIL. Fortunately the multiprocessing library seems like a good workaround to the GIL issue.
Agree, which means that python actually got worse!
I guess we can argue the semantics of "much" but comparing my current ryzen system to my core2duo system from 10 years ago the performance difference is massive.
To be extremely optimistic, performance per clock cycle has doubled. The average clock of server hardware hasn't increased significantly.

The number of cores have increased ridiculously, but that doesn't really help python much.

It does when going old style multi-process.

Which is something that is starting to look interesting again, given the security issues of multi-threading.