Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > python startup very slow on win2000

Thread Tools

python startup very slow on win2000

Posts: n/a
How strange it is!
I test "python" and "python -vSE".
"python" startup time is 6-7 second, "python -vSE" just need 3 second.

"Istvan Albert" <(E-Mail Removed)>
??????(E-Mail Removed)...
> angel wrote:
> > Dose python need configure? For example: PATH or other?

> do a:
> python -vSEc "print 1"
> maybe you can identify the source of the slowdown.
> Istvan.

Reply With Quote
Jeff Epler
Posts: n/a
Then you've at least learned something: Files loaded due to, or
files on PYTHONPATH, add 3-4 seconds to start time.

However, 6-7 seconds for "python -vc 'print 1'" is still excessive.
That takes only 1/2 second here, and "python -c 'print 1'" takes 0.05
seconds (the difference being the time to print all the "-v" lines,
basically). (This is on an 650MHz Unix machine--A modern 2.7GHz Unix
machine I just tested took 0.005 seconds for "python -SEc 'print 1'")

The number one reason I've seen for slow Python startups are sys.path
directories on the network (from personal experience). Other problems
might be importing modules from directories without .pyc files and
without write permissions (Python must parse and byte-compile the source
files each time), or a module being imported attempts to do some
network-related activity, such as find the hostname, but your network is

.... or it could be some obscure Microsoft Windows misconfiguration that
we'll never guess in a million years.


Version: GnuPG v1.2.4 (GNU/Linux)


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spybot + Very, Very Slow Startup Speed CtrlĄ/AltĄ/Del Computer Support 15 02-01-2008 08:37 AM
computer seens to freeze (very slow) during system startup eddy toh Computer Support 2 09-21-2005 03:52 AM
Very slow startup Allan Boyd Computer Support 5 04-23-2004 07:04 PM
Quick Book file access very very very slow Thomas Reed Computer Support 7 04-09-2004 08:09 PM
python startup on XP very slow christof hoeke Python 0 07-22-2003 05:34 PM