reading files in small chunks?

Amit Khemka khemkaamit at gmail.com
Fri Apr 14 04:29:12 EDT 2006


On 4/14/06, Rajesh Sathyamoorthy <rajesh1986 at gmail.com> wrote:
> Hi,
>
> I wanted to know why it is more efficient to read a file in smaller chunks (
> using file() or open() )? If this is not done, will this lead to errors in
> the data read or just results in slower performance?
>
>  Thank You.

It has basically to do with disk seeks and cache+memory utilization.
and you can look around for the same for details on any of your fav
search engine.

cheers,
amit.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>


--
----
Amit Khemka -- onyomo.com
Home Page: www.cse.iitd.ernet.in/~csd00377
Endless the world's turn, endless the sun's Spinning, Endless the quest;
I turn again, back to my own beginning, And here, find rest.



More information about the Python-list mailing list