On 2009-01-09, Johannes Bauer <dfnsonfsdu...@gmx.de> wrote:

> I've come from C/C++ and am now trying to code some Python because I
> absolutely love the language. However I still have trouble getting
> Python code to run efficiently. Right now I have a easy task: Get a
> file,

If I were you, I'd try mmap()ing the file instead of reading it
into string objects one chunk at a time.

-- 
Grant Edwards                   grante             Yow! I'm DESPONDENT ... I
                                  at               hope there's something
                               visi.com            DEEP-FRIED under this
                                                   miniature DOMED STADIUM ...
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to