On Tue, 4 Dec 2001, Louis Solomon [SteelBytes] wrote: > 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 ....
Good job, thank you. The problem with a fixed solution is that if you're sending a 18Mb file on a slow connection and You've to stop the server, it'll take forever. I'm going to implement an auto-adaptive buffer size on 1.3 - Davide - 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]
