----- Original Message ----- > From: Michael Van Canneyt <mich...@freepascal.org> > To: Ararat Synapse <synalist-public@lists.sourceforge.net> > 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 synalist-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synalist-public