comparison rust/hg-core/src/dirstate.rs @ 45609:e604a3c03ab9

rust: introduce `dirstate-tree` cargo feature 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. Differential Revision: https://phab.mercurial-scm.org/D9132
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 30 Sep 2020 18:10:53 +0200
parents b51167d70f5a
children 496537c9c1b4
comparison
equal deleted inserted replaced
45608:423f17f94f35 45609:e604a3c03ab9
9 use std::collections::hash_map; 9 use std::collections::hash_map;
10 use std::convert::TryFrom; 10 use std::convert::TryFrom;
11 11
12 pub mod dirs_multiset; 12 pub mod dirs_multiset;
13 pub mod dirstate_map; 13 pub mod dirstate_map;
14 #[cfg(feature = "dirstate-tree")]
14 pub mod dirstate_tree; 15 pub mod dirstate_tree;
15 pub mod parsers; 16 pub mod parsers;
16 pub mod status; 17 pub mod status;
17 18
18 #[derive(Debug, PartialEq, Clone)] 19 #[derive(Debug, PartialEq, Clone)]