writing large files quickly
jth01 at arcor.de
Sat Jan 28 09:54:00 EST 2006
> ext2 is a reimplementation of BSD UFS, so it does. Here:
> f = file('bigfile', 'w')
> $ l afile
> -rw-r--r-- 1 ivoras wheel 1048577 Jan 28 14:57 afile
> $ du afile
> 8 afile
cp bigfile bigfile2
cat bigfile > bigfile3
So it's not consumings 0's. It's just doesn't store unwritten data. And I
can think of an application for that: An application might want to write
the biginning of a file at a later point, so this makes it more efficient.
I wonder how other file systems behave.
> I read somewhere that it has a use in database software, but the only
> thing I can imagine for this is when using heap queues
That's an article about the heap efficient data structure. Was it your
intention to link this?
More information about the Python-list