Python is slow but that's not a problem for a scripting language which is used for data pipelines, prototyping, and teaching coding basics to high schoolers. No one sane is using it where performance matters, like microservices. Oh, wait.
Also, I found some stuff on yt where a guy actually had to put in quite a lot of effort to make some math stuff run faster in C/C++ (not sure which one anymore) because python just used really optimised C libraries in the background. Not an expert and this is only anecdotal, but I think worth mentioning here, too.
probably. I think I watched that channel in the past and it fits the topic. I just can't remember exactly and don't wanna spend half an hour trying to find the exact video
Exactly. For math stuff, there's probably a algorithm written and optimized by some PhD back in the 80s that's probably more efficient than anything the majority of people could come up with. And if there isn't njit makes Python pretty dang fast for a lot of use cases.
View all comments
30
u/MiloBem 5d ago
Python is slow but that's not a problem for a scripting language which is used for data pipelines, prototyping, and teaching coding basics to high schoolers. No one sane is using it where performance matters, like microservices. Oh, wait.