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

Re: Performance Trap - Opening/Closing Files Inside a Loop

by DrHyde (Prior)
on Dec 10, 2004 at 12:06 UTC ( #413813=note: print w/ replies, xml ) Need Help??


in reply to Performance Trap - Opening/Closing Files Inside a Loop

I bet you're going to run out of file handles.


Comment on Re: Performance Trap - Opening/Closing Files Inside a Loop
Re^2: Performance Trap - Opening/Closing Files Inside a Loop
by Happy-the-monk (Monsignor) on Dec 10, 2004 at 15:02 UTC
Re^2: Performance Trap - Opening/Closing Files Inside a Loop
by tachyon (Chancellor) on Dec 11, 2004 at 00:45 UTC

    I bet you're going to run out of file handles.

    I'll bet you I won't :-)

    $ ulimit -HSn 8192

    A file descriptor is really just an entry in a C array which is maintained by the OS. Although by default the size of that array is typically 512, 1024, .... or some other function of base 2 depending on OS etc you can make it virtually anything you want within reason. See this for some more details.

    cheers

    tachyon

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://413813]
help
Chatterbox?
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: (9)
As of 2014-07-25 23:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls