From Friedrich.Leisch at boku.ac.at  Fri Feb 10 13:40:39 2012
From: Friedrich.Leisch at boku.ac.at (Friedrich Leisch)
Date: Fri, 10 Feb 2012 13:40:39 +0100
Subject: [Rd] Creating XML document extremely slow
In-Reply-To: <CAM+LvrA9pWspU2qTMf4dJTbxFZzS9waDLTbHtHU=0GiJYwD4dA@mail.gmail.com>
References: <CAM+LvrA9pWspU2qTMf4dJTbxFZzS9waDLTbHtHU=0GiJYwD4dA@mail.gmail.com>
Message-ID: <20277.4167.362367.846175@worblehat.boku.ac.at>

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



[Rd] Creating XML document extremely slow
Friedrich Leisch