Max. number of opened files, efficiency

Oliver Fromme olli at
Wed Aug 13 16:16:06 UTC 2008

Laszlo Nagy wrote:
 > In fact I do not need any name associated with the file. I just need a 
 > temporary file object, I would like to access it in read write mode and 
 > then throw it.

In that case, why do you use physical (i.e. on-disk) files
at all?  You could simply use memory objects.  If you want
to use file semantics (with read() and write() methods etc.),
you can easily do that in Python with memory objects, too.
See the StringIO and cStringIO modules for details.

Best regards

Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:

"We, the unwilling, led by the unknowing,
are doing the impossible for the ungrateful.
We have done so much, for so long, with so little,
we are now qualified to do anything with nothing."
        -- Mother Teresa

More information about the freebsd-questions mailing list