Python Program running a lot slower after change to Ubuntu - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Python Program running a lot slower after change to Ubuntu (/thread-32741.html) |
Python Program running a lot slower after change to Ubuntu - hubenhau - Mar-02-2021 Hello, I have a program that I wrote and used in Windows. It's using opencv-pythons template matching to find a lot of pictures very quickly. On Windows it took about 0.5 seconds but after changing to Ubuntu 20.04LTS it takes 1.5 seconds. I even installed opencv from the source files after trying it with pip but that didn't change much either. I hope someone knows the reason or if there is anything to improve the performance on Ubuntu. Thanks in Advance RE: Python Program running a lot slower after change to Ubuntu - Serafim - Mar-02-2021 There might be a million reasons. Normally Python is faster on Linux than on Windows and the fastest version is said to be the latest. First: Is it the same Python implementation and version on both systems? PyPi is also said to be a faster interpretor than the standard one. Then there are CPython and Nuitka, where Nuitka is said to be the fastest. For info look at e.g. https://realpython.com/pypy-faster-python/ https://www.javatpoint.com/which-is-the-fastest-implementation-of-python You also have performance tips on https://wiki.python.org/moin/PythonSpeed/PerformanceTips |