Mercurial > hg
view mercurial/templates/raw/graph.tmpl @ 31697:992882cef7e1
fileset: perform membership test against set for status queries
Previously, fileset functions operating on status items performed
membership tests against a list of items. When there are thousands
of items having a specific status, that test can be extremely
slow. Changing the membership test to a set makes this operation
substantially faster.
On the mozilla-central repo:
$ hg files -r d14cac631ecc 'set:added()'
before: 28.120s
after: 0.860s
$ hg status --change d14cac631ecc --added
0.690s
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 28 Mar 2017 14:40:13 -0700 |
parents | d490edc71146 |
children |
line wrap: on
line source
{header} # HG graph # Node ID {node} # Rows shown {rows} {nodes%graphnode}