diff contrib/memory.py @ 21895:5809d62e7106

context: extend efficient manifest filtering to when all paths are files On a repository with over 250,000 files and 700,000 commits, this improves cases like hg status --rev <rev> -- <file> # rev is not . from 2.1 seconds to 1.4 seconds. There is further scope for improvement here: for a single file or a small set of files, it is probably more efficient to use filelog linkrevs when possible. However there will always be cases where that will fail (multiple commits pointing to the same file revision, removed files...), so this is independently useful.
author Siddharth Agarwal <sid0@fb.com>
date Wed, 16 Jul 2014 14:53:03 -0700
parents 08a0f04b56bd
children 3e0d27d298b7
line wrap: on
line diff