Re: [PATCH v4 0/7] Avoid multiple recursive calls for same path in read_directory_recursive()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/26/2020 5:27 PM, Elijah Newren via GitGitGadget wrote:
> This series provides some "modest" speedups (see last commit message), and
> should allow 'git status --ignored' to complete in a more reasonable
> timeframe for Martin Melka (see 
> https://lore.kernel.org/git/CANt4O2L_DZnMqVxZzTBMvr=BTWqB6L0uyORkoN_yMHLmUX7yHw@xxxxxxxxxxxxxx/
> ).
> 
> Changes since v3:
> 
>  * Turns out I was wrong about the untracked cache stuff and had some bugs
>    around untracked directories with nothing bug ignored sub-entries.
>  * First patch now is no longer a change of expectation of the untracked
>    cache, but some more thorough testing/verification in that test that
>    helped explain my misunderstanding and uncover the bug in my refactor.
>  * Corrected the check_only and stop_at_first_file logic in the last patch
>    and added a big comment explaining how/why it all works. Also stopped
>    disabling part of the untracked cache in the same patch, and undid all
>    the changes to t7063 in that patch.
> 
> Stuff still missing from v4:
> 
>  * I didn't make the DIR_KEEP_UNTRACKED_CONTENTS changes I mentioned in 
>    https://lore.kernel.org/git/CABPp-BEQ5s=+6Rnb-A+pdEaoPXxfo-hMSegSe1eai=RE74A3Og@xxxxxxxxxxxxxx/ 
>    which I think would make the code cleaner & clearer. I guess I'm leaving
>    that for future work.
> 
> As per the commit message of the final patch, this series has some risk.
> Extra eyes would be greatly appreciated; one pair already helped me find one
> bug.

I'm glad that I could help you discover mixed expectations. This pair of eyes
is now satisfied with this series to the extent I can check it.

Adding the previous patch to our microsoft/git fork pass the functional tests
in Scalar and VFS for Git, for what it's worth:

[1] https://github.com/microsoft/scalar/pull/358
[2] https://github.com/microsoft/VFSForGit/pull/1646

Thanks,
-Stolee




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux