[PATCH 6 of 7] fileset: reorder 'and' expression to evaluate basic patterns first

Pulkit Goyal 7895pulkit at gmail.com
Fri Aug 3 13:56:03 EDT 2018


On Fri 3 Aug, 2018, 6:02 PM Yuya Nishihara, <yuya at tcha.org> wrote:

> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1532158905 -32400
> #      Sat Jul 21 16:41:45 2018 +0900
> # Node ID 6a0bf2f620f877d609896f649c0feae09c3f5d2d
> # Parent  1ec115b2c5525f0507ff7c4dc2019b57ae391911
> fileset: reorder 'and' expression to evaluate basic patterns first
>
> Timing of a crafted example (when disk cache is warm):
>
>   $ hg files set:'binary() and path:contrib'
>   (orig) time: real 0.140 secs (user 0.120+0.000 sys 0.020+0.000)
>   (new)  time: real 0.040 secs (user 0.030+0.000 sys 0.010+0.000)
>

This looks like performance improvement. How about adding this to 4.8
releasenotes page on wiki?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20180803/5c677c71/attachment.html>


More information about the Mercurial-devel mailing list