Re: [xml] Need better XML writing performance



Yes, Solaris 6 and higher have excellent i/o performance. 5,000 msgs/sec
does not even begin to tax the system. The app is cpu bound (0% idle). But
thanks for asking! 

-----Original Message-----
From: Espen Ekeroth [mailto:espene halden net]
Sent: Wednesday, July 12, 2006 5:00 PM
To: 'Pierre Joye'; Noble, Robert
Cc: xml gnome org
Subject: RE: [xml] Need better XML writing performance


Just wondering: Can your file system handle 5000 files/sec ?

/Espen

-----Original Message-----
From: xml-bounces gnome org [mailto:xml-bounces gnome org] On Behalf Of
Pierre Joye
Sent: 12. juli 2006 21:57
To: Noble, Robert
Cc: xml gnome org
Subject: Re: [xml] Need better XML writing performance

Hi,

On 7/12/06, Noble, Robert <Robert Noble phlx com> wrote:
We need to increase performance of our XML data generating application.
Our
app receives (during peak periods) as many as 5,000 binary messages per
second and converts them to XML using libxml2 and writes them to a file in
real time. Our environment is Sun Solaris 10.

Profiling shows almost all the time is spent inside libxml2.

For each message we receive, our code looks something like this:

    Receive binary msg
    xmlBufferCreate()
    xmlNewTextWriterMemory()

why not using xmlNewTextWriterFilename  if you write the buffer to a
file anyway? It should also use less memory or a more constant amount
of memory.

--Pierre
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]