( )⚙ D9132 rust: introduce `dirstate-tree` cargo feature

This is an archive of the discontinued Mercurial Phabricator instance.

rust: introduce `dirstate-tree` cargo feature
ClosedPublic

Authored by Alphare on Sep 30 2020, 1:35 PM.

Details

Summary

This feature gates (at compile-time) the use of the newly-added dirstate tree.

The motivation for this is that the dirstate tree is currently *very* slow;
replacing the current hashmap-based dirstate is not a viable solution in terms
of performance... and why would you be using the Rust implementation if not
for performance?

The feature will also help reviewers better understand the differences that
will slowly appear as the dirstate tree gets better.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

Alphare created this revision.Sep 30 2020, 1:35 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.