Mail Archives: djgpp-workers/2001/05/24/02:02:51
On Wed, 23 May 2001, Laurynas Biveinis wrote:
> > If so, then this is exactly what I wanted to avoid: opening a file and
> > reading its first chunk will slow down readdir tremendously. It is
> > IMHO unreasonable to punish all programs which use readdir to such a
> > great extent.
>
> ...but in 99.9% cases __internal_readlink() will call just filelength()
> to check for 510 bytes magic size. No open() at all in this case, and plain
> filelength() is cheaper that stat(), isn't it?
??? I don't have the latest CVS sources handy where I type this, but IIRC
filelength takes a handle, so __internal_readlink needs to open the file,
before it knows that it's 510 byte long.
- Raw text -