http://www.perlmonks.org?node_id=596107


in reply to Nesting below emptiness and/or inverting a hash.

I may be (in fact, probably am) missing something significant, but... couldn't you dump the parsed XML data into a database (with some kind of context info (eg - a field indicating a tag's parent)), and then rebuild the data structure afterwards?

  • Comment on Re: Nesting below emptiness and/or inverting a hash.

Replies are listed 'Best First'.
Re^2: Nesting below emptiness and/or inverting a hash.
by Moron (Curate) on Jan 25, 2007 at 10:34 UTC
    That would be prohibitively slow. The existing version in development can parse a gigabyte in less than a minute. I don't want to slow it down with database calls otherwise I am defeated from the outset.

    -M

    Free your mind

      Ah. Yes, that would be the "something significant" that I missed.

      :-D