> I suspect the much larger real program may have issues with allocating and
> freeing storage.

That is related to my very first suspicion when I saw your message
yesterday. (I wanted someone ELSE to bring up the issue <g>.) Although I
don't work with FreePascal, depending on the computer, its loads, the
communications, the memory load factor, etc., my prime suspicion is that
memory churning due to THTTPSend's TMemoryStream structure and usage (for
that size data) is causing your problems.

If you're doing processing in other structures (streams, big strings,
arrays, etc.), the data is first going into other buffers, then into
THTTPSend's Document (TMemoryStream), then transferred again to your
structures...  If there's limited RAM, you might even trigger swapping to
disk...    [Ideally, THTTPsend would populate ANY stream directly. An issue
I'm going to have to deal with within a few months for some REALLY big
files.]

How much (available) RAM is on that machine?

> I know the time consumed is in the HTTP Get because...

You're talking about Synapse's Get()?  Not some other routine "on top" of
Synapse functionality?
I'm not sure we've got enough information yet...

> The program has a recursive call to the function...

I like recursion as much as the next nerd (probably more), but I avoid it
where possible. My redirect followers just use a while loop that clears the
right parts of the HTTPSend object, and repopulates the necessary
properties... So no extra memory would be used there...  This /probably/
isn't a problem in your situation, but I'd still look at it again.

> there is also extensive use of the RegExpr2
> unit.  Lots of other string processing.

That's *external* (and thus unrelated) to the speed problem we're talking
about here though... Right?


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to