Re: [PATCH] Add a new lstat implementation based on Win32 API, and make stat use that implementation too.
- From
David Kastrup <dak@gnu.org>
- Date
- Sep 2, 2007, 17:58 UTC
- Message-ID
- <85sl5xoso1.fsf@lola.goethe.zz>
- In-Reply-To
- <Pine.LNX.4.64.0709021843270.28586@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 11 quoted lines
> Hi, > > On Sun, 2 Sep 2007, Marius Storm-Olsen wrote: > >> The conversion of the FileTime to unix time_t is far more heavy. > > Really? If so, we might consider storing FILETIME->dwHightDateTime and > ->dwLowDateTime in the index. > > But I doubt it. AFAICT _getting_ at the stat data is the expensive thing > in Windows, not a 64-bit addition, subtraction and division.
64-bit division conceivably could be somewhat expensive, but it sounds like it should not be much compared to the cost of a system call. What is the code doing that division?
-- David Kastrup, Kriemhildstr. 15, 44793 Bochum