Re: [PATCH v3 00/13] Exclude optimizations

2013-03-14 Thread Duy Nguyen
Just thinking out loud. If I'm not mistaken, a directory's mtime is only changed when files are added are removed in that directory. And that's all we care about in read_directory. So if we keep a secondary index containing the list of all (tracked and untracked) .gitignore files and all untracked

[PATCH v3 00/13] Exclude optimizations

2013-03-12 Thread Nguyễn Thái Ngọc Duy
Result of today. I cherry-picked nd/read-directory-recursive-optim to see how far I can get after pulling all the tricks. This is a slower machine so time is longer. Anyway, read_directory time is reduced about 70% in the end. function before after -- t