Re: [PATCH v4 09/17] sparse-checkout: use hashmaps for cone patterns

2019-10-21 Thread Derrick Stolee
On 10/18/2019 11:31 AM, SZEDER Gábor wrote: > On Tue, Oct 15, 2019 at 01:55:56PM +, Derrick Stolee via GitGitGadget > wrote: >> Running 'git read-tree -mu HEAD' on this file had the following >> performance: >> >> core.sparseCheckout=false: 0.21 s (0.00 s) >> core.sparseCheckout=tru

Re: [PATCH v4 09/17] sparse-checkout: use hashmaps for cone patterns

2019-10-18 Thread SZEDER Gábor
On Tue, Oct 15, 2019 at 01:55:56PM +, Derrick Stolee via GitGitGadget wrote: > Running 'git read-tree -mu HEAD' on this file had the following > performance: > > core.sparseCheckout=false: 0.21 s (0.00 s) >core.sparseCheckout=true: 3.75 s (3.50 s) >core.sparseCheckout=con

[PATCH v4 09/17] sparse-checkout: use hashmaps for cone patterns

2019-10-15 Thread Derrick Stolee via GitGitGadget
From: Derrick Stolee The parent and recursive patterns allowed by the "cone mode" option in sparse-checkout are restrictive enough that we can avoid using the regex parsing. Everything is based on prefix matches, so we can use hashsets to store the prefixes from the sparse-checkout file. When che