Hello,

Peter Illes wrote:
> 
> Some more details:
> 
> We are implementing a Web Services server (essentially SOAP server) in PHP
> and one of the calls has to return a data packet as XML so we want to
> accumulate the response in a string variable and then return it (optionally
> logginig it for security reasons).
> 
> We would like to avoid using external files for the accumulation, since we
> need some good performance and typically disk v.s. memory cannot compete
> (the server has enough RAM;-).

If you were using a Unix OS, maybe you could use the shared memory
extension. I wonder if isn't there anything like that for Windows.

Alternatively you may want to establish a persistent connection to local
TCP socket and send your log data to it so a daemon could collect it
periodically.

Regards,
Manuel Lemos


> 
> "Peter Illes" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> >
> > This is the second post of this problem since I did not get any answer for
> > the first. Please, could someone out there help? Thanks in advance...
> >
> > I wonder if there is any performance tuning newsgroup/faq/whatever related
> > to PHP. I searchead to no avail...
> >
> > Anyway, my current mind boggler is: we are accumulating a large (~400k)
> XML
> > response in a string before sending it out by adding little pieces a time
> > (like 10-20 chars). Now this results in  very bad performance -- most
> > probably due to the fact that the string is enlarged/re-allocated
> thousands
> > of times. I would love to pre-allocate a big buffer for the string so that
> > performance gets better (something like SetLength() in Delphi). How can I
> do
> > this?
> >
> > Xuse me if the answer is much too trivial, I'm a newbie in PHPland :-)
> >
> > Thanks for any suggestion,
> >
> > Peter
> >
> >
> >
> >

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to