From: Harald Armin Massa <haraldarminmassa@gm...> - 2006-05-22 07:15:16
there are some aspects:
1st) py2exed applications are "precompiled". Natvie Python scripts get
compiled from *.py to *.pyc or *.pyo, before the Python Virtual
Machine executes them.
2nd) py2exed applications are crunched together in less files, so
directory searches are minimized (also that should be a VERY minimal
3rd) "normally" all the scripts within a py2exe are put in one zip,
and it was reported more than once that access to files within one zip
is faster then access to multiple files on disk. In addition that in
most situation loading time is disk-bound, so that zip compressed
scripts to make a difference. Keep in mind, since we are talking about
kB, not MB, that these time differences are very very very small.
4th) "exe are faster" and "compiled software is faster". That
impression is based back to the times of c64 and vc20; and your mind
will do EVERYTHING to give you the impression that it is right.
On 5/21/06, Alexander Belchenko <bialix@...> wrote:
> I have subjective observation that py2exe'd python application has
> faster start-up time than native python script. Is it true and why it
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job ea=
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim=
> Py2exe-users mailing list
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
PostgreSQL - supported by a community that does not put you on hold
From: Alexander Belchenko <bialix@uk...> - 2006-05-25 06:16:54
Harald Armin Massa пишет:
> there are some aspects:
> 2nd) py2exed applications are crunched together in less files, so
> directory searches are minimized (also that should be a VERY minimal
I'm also see that compiled library.zip does not contain site.py module
that imported by default in usual python application. So, probably,
omitting them give additional speed-up?
Is there exist the way to measure real application start-up time with
pure python and with py2exe'd application?