Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: file handle limitation of 255

by graff (Chancellor)
on Jul 15, 2010 at 00:45 UTC ( #849667=note: print w/replies, xml ) Need Help??

in reply to file handle limitation of 255

The limit on the number of open file handles is the kind of thing that would traditionally force programmers to be creative in finding algorithms that scaled nicely despite the limit.

For example, if you store your output in an accumulating data structure instead of hundreds of files that are being kept open, and modularize the process of adding content to the data structure, there's just a little extra planning work to be done to establish a threshold for when data needs to be dumped to a given file so that the given chunk of memory can be reused. It's a matter of striking a balance between the amount of memory consumed and the number of times files must be opened and closed.

Replies are listed 'Best First'.
Re^2: file handle limitation of 255
by radnus (Novice) on Jul 15, 2010 at 00:53 UTC
    THANKS AGAIN!!! Yes, there are ways to overcome this, by working around this dis-advantage. But first, you have to realize that this is an issue :)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (14)
As of 2016-10-27 19:00 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (369 votes). Check out past polls.