in reply to Re^2: Multithreaded xml writing using XML::Writer
in thread Multithreaded xml writing using XML::Writer

I wonder what you try to gain by using multiple threads with what is essentially an IO-bound operation.

I wouldn't try to do IO on the same channel with more than one thread. If you want to create XML fragments and output them in parallel, I would create the fragments in separate threads and send them to one output thread via Thread::Queue.

  • Comment on Re^3: Multithreaded xml writing using XML::Writer

Replies are listed 'Best First'.
Re^4: Multithreaded xml writing using XML::Writer
by DreamT (Pilgrim) on May 03, 2010 at 12:02 UTC
    Well, in theory the data sources are relatively slow, so if I fetch the data from them in parallell, I can gain some time, I think.
    I will look into Thread::Queue.