Rita, 12.09.2011 12:34:
I have a large file, 18gb uncompressed, and I would like to know what is the
preferred method to read this file for random access. I have several
processes reading the file which different calculate arguments. My server
has 64gb of memory. Not sure what is the preferred way to do this?

It depends on the content (and likely also the operating system), but you might want to take a look at the mmap module.

Stefan

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to