Thread (37 messages) flat view 37 messages, 10 authors, 2016-06-15

Re: [PATCH] Add a new lstat implementation based on Win32 API, and make stat use that implementation too.

From: Marius Storm-Olsen <hidden>
Date: 2016-06-15 22:43:32

Johannes Schindelin wrote:
On Sun, 2 Sep 2007, Marius Storm-Olsen wrote:
quoted
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.
Haha, sure sure, _getting_ that stat data in the first place is the
expensive part on Windows. However, that's something you _have_ to do no
matter what, so there's no way around that.

Turns out that it wasn't as bad as i thought. If you have
filetime_to_time_t() just return, say 116444736, I see
    git add . improve with ~0.5 sec for 100K files
and git status improve with 0.05 sec

Surely, avoiding the tripple stat'ing in 'git status' would help a lot
more ;-) So, I guess we'll just leave the timestamp conversion as is,
and avoid complicating the index.

--
.marius

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help