reading files in small chunks?

Rajesh Sathyamoorthy rajesh1986 at gmail.com
Fri Apr 14 04:16:48 EDT 2006


Hi,

Could I have some links? It would be very helpful.

Thank You.

On 4/14/06, Felipe Almeida Lessa wrote:
>
> Em Sex, 2006-04-14 às 13:45 +0800, Rajesh Sathyamoorthy escreveu:
> > I wanted to know why it is more efficient to read a file in smaller
> > chunks ( using file() or open() )?
>
> It's more efficient in some cases, and worse on others. It also depends
> on how you implement the read loop. I won't elaborate too much here,
> there are loads of sites and books that talk about this topic.
>
> > If this is not done, will this lead to errors in the data read or just
> > results in slower performance?
>
> It doesn't corrupt anything, unless you have a buggy hardware.
>
> --
> Felipe.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060414/236dad50/attachment.html>


More information about the Python-list mailing list