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

Re: (OT) should i limit number of files in a directory

by DrHyde (Prior)
on Sep 12, 2008 at 10:13 UTC ( [id://710869]=note: print w/replies, xml ) Need Help??


in reply to (OT) should i limit number of files in a directory

Does it matter if you have 3 million files in the directory? Have you actually tested to see if it'll be a problem?

With three million files, ls will be slow, but on a reasonable filesystem I would expect that file access speed would be immeasurably different from in a directory with only a thousand files.

As an example, I have a directory here which has tappity-tap 110,000 files. It takes a few seconds to ls. But statting a particular file is as near as damnit instantaneous.

  • Comment on Re: (OT) should i limit number of files in a directory

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found