On Tue, Aug 17, 2010 at 11:20 AM, Matt Williams <li...@milliams.com> wrote:
> The problem I'm now facing is that the parsing of the XML file can
> take quite some time (~6 seconds for openbabel, up to ~45 seconds for
> OGRE3D and obviously even more for larger projects).

I'm not familiar with the doxygen tag file, but it looks like there's
a lot of XPath usage in your code that reads that an produces the
mapping.  It might be worth looking at more incremental ways to handle
that, possibly using a SAX- or Expat-based parser.  ElementTree is
generally good for parsing, but XPath handling is likely more
expensive.

Also might be worth seeing how much time is being spent in your
parsing.normalize() function.

If those don't produce enough potential speedups, then it's time to
cache the converted structure.


  -Fred

--
Fred L. Drake, Jr.    <fdrake at gmail.com>
"A storm broke loose in my mind."  --Albert Einstein

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-...@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to