Re: [xml] Need better XML writing performance
- From: "Pierre Joye" <pierre dev gmail com>
- To: "Noble, Robert" <Robert Noble phlx com>
- Cc: "xml gnome org" <xml gnome org>
- Subject: Re: [xml] Need better XML writing performance
- Date: Wed, 12 Jul 2006 21:57:29 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]