Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is a python script faster when you convert it to a .exe using py2exe? [closed]

I am really bad at compiling programs, and I just want to know if my python 2.5 program would be faster if I converted it to a .exe using py2exe. I don't want to spend a lot of time trying to compile it if it will just be slower in the end. My program uses OpenCV and PyAudio, but I think that are the only non pure-python modules it uses. Thanks!

NOTE: I do not think this question requires a snippit of code, but if it does, please say so in the comments. Thanks!

like image 392
Tom Avatar asked Feb 26 '26 03:02

Tom


1 Answers

No, not really. Since it's merely a wrapper it provides the necessary files needed to run your code. Using Cython could make your program run faster by being able to compile it using C.

like image 162
Aleksander S Avatar answered Feb 28 '26 18:02

Aleksander S