Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: More questions than observations on installman

by ELISHEVA (Prior)
on Feb 23, 2011 at 08:36 UTC ( #889762=note: print w/ replies, xml ) Need Help??


in reply to More questions than observations on installman

All I have to offer is yet more questions.

My first guess if no one function is a gobbler of CPU (aside from parse_file) that maybe the algorithms that are making all these calls are doing more work than they need to. Perhaps the code is recalculating values over and over rather than caching them? Or perhaps some part of the code is inefficiently traversing a graph.

I notice that one of the routines is called guesswork. Is this the only place where guesswork is being done or is this a small piece of a larger heuristic algorithm? If so, what sort of heuristic are they using and what is your best guess of its big-O? Could that be the culprit?

Also what is the memory profile? Do you have any reason to believe that the CPU consumption is actually the result of page thrashing? I once had a program that was taking somewhere between 10 and 30 minutes to run. When I altered the program to write out data to disk as soon as it was produced rather than waiting until all the results were collected, the time dropped down to 2-3 minutes.

Could you provide a link to the source code? It might help us put the results you posted in context.


Comment on Re: More questions than observations on installman
Re^2: More questions than observations on installman
by atcroft (Monsignor) on Feb 23, 2011 at 09:19 UTC

    installman is the code to install the manual pages when building perl. The particular version I was examining is in the 5.12.1 perl source distribution, which (I think I would be safe to assume) would be processing the code included in the perl source for POD to install as man pages. (Anyone: Correct me if I am wrong, please.)

    How could I best examine the memory usage, to determine if maybe it is swapping at that time?

Re^2: More questions than observations on installman
by Anonymous Monk on Feb 23, 2011 at 09:24 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://889762]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2014-07-10 09:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (205 votes), past polls