What download speed are you talking about? I compared downloading a 25M file
from http://ftp.fr.debian.org/ with synapse and wget and both download at
around 2.9MB/s. This is the max speed of my WAN connection. Wget uses
slightly more CPU (saving the file?) but cpu isn't the bottleneck neither. 
As Michael said, synapse loads everything in memory. The stream data grows
with small increments but AFAIK tmemorystream is optimized to not resize in
small chunks which would slow down a lot.
The web site you're downloading from isn't doing any bandwith throttling
depending on the UserAgent? 

Ludo
  

> -----Message d'origine-----
> De : Leonardo M. Ramé [mailto:[email protected]] 
> Envoyé : mercredi 20 juillet 2011 19:57
> À : Ararat Synapse
> Objet : Re: [Synalist] THTTPSend GET slower than wget
> 
> 
> ----- Original Message -----
> 
> > From: Michael Van Canneyt <[email protected]>
> > To: Ararat Synapse <[email protected]>
> > Cc:
> > Sent: Wednesday, July 20, 2011 2:39 PM
> > Subject: Re: [Synalist] THTTPSend GET slower than wget
> > 
> > 
> > 
> > On Wed, 20 Jul 2011, Leonardo M. Ramé wrote:
> > 
> >>  Hi, I'm using THTTPSend to retrieve some files of ~10mb in size 
> >> aprox.
> > using GET method. As it felt slow, I did some tests using wget and 
> > curl to call
> > the same urls and found THTTPSend takes almost twice the 
> time of the other 
> > utilities.
> >> 
> >>  I use this code to get the files:
> >> 
> >>  lHttp := THTTPSend.Create;  lHttp.Sock.OnHeartbeat:=@HeartBeat;
> >>  lHttp.Sock.HeartbeatRate := 5000;
> >>  if lHttp.HTTPMethod('GET', FUrl) then
> >>  begin
> >>      lHttp.Document.Position:= 0;
> >>      // do something with Document
> >>  end;
> >>  lHttp.Free;
> >> 
> >>  How can I improve the speed of this transfer?. I've tested 
> >> commenting
> > out the HeartBeat, but it doesn't improve.
> > 
> > If you're saving to file:
> > Set the document property directly to the file stream.
> > If I recall correctly, by default, all is loaded in memory,
> > and then tranferred to file.
> > 
> 
> 
> No, I'm using the stream in memory.
> 
> 
> --------------------------------------------------------------
> ----------------
> 10 Tips for Better Web Security
> Learn 10 ways to better secure your business today. Topics 
> covered include:
> Web security, SSL, hacker attacks & Denial of Service (DoS), 
> private keys,
> security Microsoft Exchange, secure Instant Messaging, and much more.
> http://www.accelacomm.com/jaw/sfnl/114/51426210/
> _______________________________________________
> synalist-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/synalist-public
> 


------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to