On Thu, Dec 10, 2009 at 05:43:14PM -0800, Russ Allbery wrote: > Ricardo Signes <[email protected]> writes: > > > Is there any strong feeling that Pod::Simple needs to have so many > > things done either apparently or clearly in the interest of speed? I > > found a number of methods that I could barely track down because they're > > generated strangely, explicitly in the name of speed. There's a good > > bit of code to allow debugging output to be optimized away, which leads > > to stupid method of using "DEBUG" which leads to stupid bugs. And so > > on. > > Ironically, Pod::Simple is still rather slow, and I didn't notice that > much of a performance improvement over the previous Pod::Parser when I > switched the podlators modules to it.
Devel::NYTProf is your friend. (Specifically, one test of it is to profile the installman script in core, because that does a lot of Pod work in one process) No answers jump out of the page on how to speed it up, though. Although spending more than a couple of minutes looking at it might find some. Nicholas Clark
