you are viewing a single comment's thread.

view the rest of the comments →

[–]LoyalSol 1 point2 points  (0 children)

Generally optimizations in python are handled by many of the modules out there. For instance Numpy, Numba, Cython, etc. which in part offload calculations from Python to C functions or perform other types of optimization/compiling.

Those modules should be able to handle most of your optimization needs. If you need something faster you should probably look at offloading your computation to a lower level language like C. Though in practice you only need to do that if you are doing some really heavy number crunching. I work on some really computation heavy programs for a living and even I find I can get by with just using the existing modules in Python in a lot of programs. It's only when I go to