Your string concatenation is going to kill you. You'd be better off using
a collection or array based storage for holding each individual string and
then joining them later. I do approximately the same operations for
newsgroups, downloading at over 1mbit per second while reconstructing
and decoding on a pretty lame machine. Never seen more than 10-15%
CPU utilization for these processes.
--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog:
http://weblogs.asp.net/justin_rogers
"Ron" <rv*******@hotmail.com> wrote in message
news:eJ**************@TK2MSFTNGP12.phx.gbl...
Hi all,
I created a POP3 client (with the help of some examples of the net:).
I'm using a StreamReader to read from the NetworkStream as follows:
while (sTmp != ".")
{
sMsg += sTmp + "\r\n";
sTmp = strmReader.ReadLine();
}
The problem is that this is really slow and uses a lot of CPU time.
Is there a faster way to do this??
Thanx,
Ron