Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Deep recursion on subroutine

by hdb (Prior)
on Sep 04, 2013 at 12:56 UTC ( #1052332=note: print w/ replies, xml ) Need Help??

in reply to Deep recursion on subroutine

If it takes long time to traverse the tree because of some time-consuming action you take on each node, you might want to write a lighter version of your crawler that does nothing but to traverse the tree. This is no guarantee that the 'real' thing will not hang but will give you some confidence.

You could also add some bookkeeping to make sure you have not visited a node already, for example because you have circular structures in the 'tree' that you were not aware of, or because of some bug.

Comment on Re: Deep recursion on subroutine

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2015-10-04 19:59 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (104 votes), past polls