[Rd] Creating XML document extremely slow

Friedrich Leisch Friedrich.Leisch at boku.ac.at
Fri Feb 10 13:40:39 CET 2012


>>>>> 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



More information about the R-devel mailing list