Skip to content
Snippets Groups Projects
Commit b9588ff9b66a authored by Kyle Lippincott's avatar Kyle Lippincott
Browse files

copies: avoid materializing a full directory map during copy tracing

Materializing a full copy of every directory in a treemanifest repo can be quite
expensive, even with a narrow matcher. For flat manifest repos, this should be
equivalent - it will still materialize (and cache) a dict of all of the dirs
inside of the manifest object, we just don't get a copy of it.

In a repo I have here, this brings the time for a simple rebase from 11.197s to
4.609s.

Differential Revision: https://phab.mercurial-scm.org/D9503
parent 61c1f29e7f4f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment