[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Output of dpkg-scanpackages as XML



On Thursday 13 January 2005 20:42, William Ballard wrote:
> On Thu, Jan 13, 2005 at 08:14:31PM +0100, Frank S. Thomas wrote:
> > I could successfully convert sid's binary-i386/source package files into
> > XML. However, because dctrl2xml builds up a dom tree of all packages in
> > these files, this is horribly slow.
>
> So don't do that.  Process it like a stream.

Using Python's DOM is (as far as I can see) the easiest and robust way to 
accomplish the task. It is working but slow if it processes a file with more 
than 8000 package records. But this was never my goal, I only wanted to 
convert files with about 20 package records.

If a user requests stream-like behaviour, because it fails in its current 
implementation, I'll probably change it. We'll see.

-Frank
-- 
Nunc vino pellite curas! -- Horaz



Reply to: