Sign in to follow this  
Mr T 87

Python - running the script or compiling it with cx_freeze or something? Performance?

Recommended Posts

I was just wondering if their as any difference in performance if I run a python script by using something like 'python script.py' then if i compiled the program into an exe using py2exe or cx_freeze. I only need my script to run on a single platform on which I built it but i'm having trouble compiling it. I'm happy running it by using 'python script.py' if their is no difference in performance. Thoughts?

Share this post


Link to post
Share on other sites
As far as I know there is no performance difference. From what I understand of what py2exe does is it copies python and your script in to a single file, so there shouldn't be any difference as far as performance goes.

Share this post


Link to post
Share on other sites
'Compiling' in this case is not something that makes your program run faster. There's no need to use py2exe or anything like it unless you wish to use it to aid distribution of the program.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this