3 ms·
“ How do you speed up computational Python code? A common, and useful, starting point is” A better starting point is: use a better language. Python is terrible
by moi2388 3mo ago
“ How do you speed up computational Python code? A common, and useful, starting point is”
A better starting point is: use a better language. Python is terrible and unbearably slow. If you need anything serious or performant, switch to something else.
- wrsh07 3mo agoLiterally bullet 2: > 2. Use a compiled language to write a Python extension. It's fine to be grumpy about languages, but python is the de facto standard in many industries, and a lot of people don't get to choose. So, yes, asking "how do you speed up computational python code?" is a good, fine, normal question.
- dekdrop 3mo agoThe point of python is to be a scripting language. Writing the main code in a systems languages and making it available to python is a very promising way of using it.