HomePhabricator

treedirstate: cache dirstate data when iterating all files

Authored by mbthomas.

Description

treedirstate: cache dirstate data when iterating all files

Iterations over all files will cause most of the file to be read in a piecemeal
fashion. This will be inefficient on disks with slow seek times. Instead,
read the whole file into memory before iterating.

Differential Revision: https://phab.mercurial-scm.org/D1402

Details

Committed
mbthomasNov 28 2017, 7:51 AM
Differential Revision
D1402: treedirstate: cache dirstate data when iterating all files
Parents
rFBHGX4afa6d8392af: treedirstate: add Python linkage
Branches
Unknown
Tags
Unknown