under some circumstances the path normalization causes very slow repo operations
example: hg init in large repository immediately followed by hg stat
the problem is that foldmaps are empty for freshly initialized repositories so
the normalize call in dirstat that is normally used for each file in the repo
will always call the util.fspath for each file
given that the work list is result of path scanning the normalization and
additional lookups should not be required
proposed patch is attached
on ~30k files this accelerates the hg init/hg stat sequence from 20s to .56s
|