Re: [Rd] Creating XML document extremely slow

From: Titus von der Malsburg <>
Date: Fri, 10 Feb 2012 17:36:45 +0100

On Fri, Feb 10, 2012 at 2:10 PM, Milan Bouchet-Valat <> wrote:
> Le vendredi 10 février 2012 à 13:18 +0100, Titus von der Malsburg a
> écrit :
> Just a guess, but I'd try creating all 'Marker' nodes first, storing
> them in a 'markers' list, and then calling addChildren(markernode,
> kids=markers).

A good guess. I changed the code according to your suggestion and it reduced the processing time from ~25 to ~3 seconds. Better but still ridiculously slow. When I generate the same XML document by concatenating pre-fabricated strings, as suggested by Friedrich, the whole process takes just 10 ms according to system.time.

 Titus mailing list Received on Fri 10 Feb 2012 - 16:39:23 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 Fri 10 Feb 2012 - 18:20:16 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive