[PATCH v5 3/7] unpack-trees: optimize walking same trees with cache-tree

2018-08-18 Thread Nguyễn Thái Ngọc Duy
In order to merge one or many trees with the index, unpack-trees code walks multiple trees in parallel with the index and performs n-way merge. If we find out at start of a directory that all trees are the same (by comparing OID) and cache-tree happens to be available for that directory as well, we

Re: [PATCH v5 3/7] unpack-trees: optimize walking same trees with cache-tree

2018-08-20 Thread Ben Peart
On 8/18/2018 10:41 AM, Nguyễn Thái Ngọc Duy wrote: In order to merge one or many trees with the index, unpack-trees code walks multiple trees in parallel with the index and performs n-way merge. If we find out at start of a directory that all trees are the same (by comparing OID) and cache-tre