well,
I thought it was time for some speed tests for downloading emails via
POP3.
so I set up a test xmail server (v1.2) on my dual p3 733 with 768MB
running winxp pro.
sent a 13MB binary attachment to the test account (which becomes a 18MB
text file).
downloaded it with OutlookExpress, and it took around 6mins.
made a script that uses netcat to download the same email (I had backed
up the mail file in the mailbox folder, so I could restore it for each
speed test.)
and it still took around 6mins.
ran the test a few times, still around 6mins.
this is good - the test was producing consistend results.
next, I loaded the src code into VC, and had a good look at
SysSendFile()
decided I'd try a change. I changed the following:
int iCurrSend = (int) Min(iSndBuffSize, ullEndOffset -
ullCurrOffset);
to
int iCurrSend = ullEndOffset - ullCurrOffset;
in the main loop
and recompiled the release mode .exe and moved it to mailroot\bin, and
re started xmail (using the --debug option for simplicity)
I ran the speed tests again.
wow - under 1min
tested a couple more times, and using OE, and it was real quick
this is of course un tested on other versions of windows, but I found
this to be such a big saving on downloading via POP3, that I'm going to
stick it on my production server.
now to check uploading emails ....
Louis Solomon
www.SteelBytes.com
-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]