This is an archive of the discontinued Mercurial Phabricator instance.

rust-dirstatemap: don't read the dirstate when requesting parents
ClosedPublic

Authored by Alphare on May 11 2020, 11:05 AM.

Details

Summary

A future patch for issue 6303 reveals a big performance regression in the Rust
DirstateMap that reads the entire dirstate when requesting parents instead
of the first 40 bytes.

perfdiscovery gets a *significant* speedup (from 0.101 to 0.016) when applied
against said patch.
I'm assuming it has other performance benefits, but this is already a good
enough win.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Alphare created this revision.May 11 2020, 11:05 AM
marmoute accepted this revision.May 13 2020, 11:30 AM
marmoute added a subscriber: marmoute.

This looks good to me.

Alphare edited the summary of this revision. (Show Details)May 14 2020, 4:29 PM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.