You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Counting index hunks by iteration is slightly inefficient #137
// TODO: Might be faster to list the directory than to probe for all of them.
// TODO: Perhaps, list the directories and cope cleanly with
// one hunk being missing.
for i in0.. {
let path = hunk_relpath(i);
if !self
.transport
.exists(&path)
.map_err(|source| Error::ReadIndex{
source,
path: path.into(),
})?
{
// If hunk 1 is missing, 1 hunks exists.
returnOk(i);
}
}
unreachable!();
}
) to determine the number of index hunks probes for each of them, which is a bit inefficient. However this is only done once per restore, so it's not really a hot path.
Activity