Is PythonService Slow, Or, Is It The Code?
Aahz
aahz at pythoncraft.com
Thu May 22 10:25:16 EDT 2003
In article <mailman.1053590596.19937.python-list at python.org>,
John Abel <john.abel at pa.press.net> wrote:
>Aahz wrote:
>>In article <mailman.1053539135.6707.python-list at python.org>,
>>John Abel <johnfabel at btinternet.com> wrote:
>>>
>>>Using medusa, I've written a simple FTP server to run on my Win2000
>>>machine. I have two versions, a Win32 service, and the other is
>>>launched from the command line. I've noticed, that the Win32 service is
>>>drastically slower than the command line version. As a test, I ftp'ed a
>>>148MB file from one machine to another (connected via a twisted cable,
>>>at 10Mbps). Using the service, the file transfered at 31kb/sec; with
>>>the cli version, it transfered at 549kb/sec.
>>
>>What happens when your CLI version is *not* the foreground window?
>
>Just checked. There is no change in the transfer rate.
That's odd. I've never actually used Win2K, so I may be talking out of
my hat, but check and see if you can figure out what the priority level
of each of those programs is. (That's the only thing I can figure
causing this.) Also, is this Win2K Pro or Win2K Server? M$ may be
doing something nasty to create this -- I remember that from my NT days.
I suspect that asking on some kind of M$ forum might lead to better
information.
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"In many ways, it's a dull language, borrowing solid old concepts from
many other languages & styles: boring syntax, unsurprising semantics,
few automatic coercions, etc etc. But that's one of the things I like
about it." --Tim Peters on Python, 16 Sep 93
More information about the Python-list
mailing list