Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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

Replies are listed 'Best First'.
Re^2: More questions than observations on installman
by atcroft (Abbot) 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?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2021-02-28 20:04 GMT
Find Nodes?
    Voting Booth?

    No recent polls found