Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Q: re Proc::ProcessTable

by blazar (Canon)
on May 03, 2005 at 09:26 UTC ( #453515=perlquestion: print w/replies, xml ) Need Help??

blazar has asked for the wisdom of the Perl Monks concerning the following question:

Sorry if this is dumb, I just wonder what the 'cache_ttys' "flag" is really for. That is, from the description, I do fundamentally understand what it does; still I fail to understand {if,when} I should care...

Replies are listed 'Best First'.
Re: Q: re Proc::ProcessTable
by rob_au (Abbot) on May 03, 2005 at 11:17 UTC
    The cache_ttys flag is used internally by Proc::ProcessTable is indicate whether the module should use and create a cache file containing the association between TTY names and device names. This option is intended to speed up the module initialisation process where a file search is performed within the /dev file system for TTY names and device names - See the _get_tty_list method for details.


    perl -le "print unpack'N', pack'B32', '00000000000000000000001000000000'"

Re: Q: re Proc::ProcessTable
by tlm (Prior) on May 03, 2005 at 10:39 UTC

    My guess is that, like with most (all?) caching, it is an optimization to avoid repeating some previously performed work. On the question of whether one should care, I would try it with and without caching and compare performance.

    the lowliest monk

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://453515]
Approved by pelagic
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2020-08-12 14:31 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (66 votes). Check out past polls.