[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] fetchnews fails to download bodies
Matthias Andree writes:
> larry.jones@xxxxxxxx (Larry Jones) writes:
> > > a) Wouldn't it be more efficient to open the file first and then doing
> > > fstat()?
> > Yes.
Because it avoids doing the inode lookup twice. Although the results of
the first lookup may be cached, there's still extra work involved and
there's no guarantee that the results will be cached. On many systems,
stat() is actually implemented as open(), fstat(), close().
What a stupid world. -- Calvin
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list