Re: [PATCH v2] cache-tree: skip some blob checks in partial clone

2018-10-09 Thread Junio C Hamano
Jonathan Tan writes: > After feedback, I restricted this to partial clone. Once restricted, I > agree with Ben that this can be done for all users of > cache_tree_update(), not just unpack-trees, so I have removed the > ability to control the behavior using a flag. Makes sense. Great. > I

[PATCH v2] cache-tree: skip some blob checks in partial clone

2018-10-09 Thread Jonathan Tan
In a partial clone, whenever a sparse checkout occurs, the existence of all blobs in the index is verified, whether they are included or excluded by the .git/info/sparse-checkout specification. This significantly degrades performance because a lazy fetch occurs whenever the existence of a missing