Re: [Rd] Creating XML document extremely slow

From: Friedrich Leisch <Friedrich.Leisch_at_boku.ac.at>
Date: Fri, 10 Feb 2012 13:40:39 +0100

>>>>> On Fri, 10 Feb 2012 13:18:38 +0100, >>>>> Titus von der Malsburg (TvdM) wrote:

> Hi list,
> I'm using the package XML to create a simple XML document.
> Unfortunately constructing the XML tree is extremely slow. My code
> (see below) adds only about 100 nodes per second on an Intel i5
> machine. There's clearly something wrong but I don't see what.

Have you considered simply writing the XML using standard functions like cat() and friends? That can be much faster than creating an XML object and writing that out (have just done that to write exams into our e-learning platform via XML).

Best,
Fritz



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 15 Feb 2012 - 13:46:40 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 15 Feb 2012 - 13:50:16 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive