comparison rust/hg-core/src/lib.rs @ 44528:c8891bca40fb

rust-status: add bare `hg status` support in hg-core A lot of performance remains to be gained, most notably by doing more things in parallel, but also by caching, not falling back to Python but switching to another regex engine, etc.. I have measured on multiple repositories that this change, when in combination with the next two patches, improve bare `hg status` performance, and has no observable impact when falling back (because it does so early). On the Netbeans repository: C: 840ms Rust+C: 556ms Mozilla Central with the one pattern that causes a fallback removed: C: 2.315s Rust+C: 1.700 s Differential Revision: https://phab.mercurial-scm.org/D7929
author Rapha?l Gom?s <rgomes@octobus.net>
date Fri, 17 Jan 2020 15:43:46 +0100
parents f13d19549efd
children d880805d5442
comparison
equal deleted inserted replaced
44527:1debb5894b39 44528:c8891bca40fb
11 pub mod testing; // unconditionally built, for use from integration tests 11 pub mod testing; // unconditionally built, for use from integration tests
12 pub use dirstate::{ 12 pub use dirstate::{
13 dirs_multiset::{DirsMultiset, DirsMultisetIter}, 13 dirs_multiset::{DirsMultiset, DirsMultisetIter},
14 dirstate_map::DirstateMap, 14 dirstate_map::DirstateMap,
15 parsers::{pack_dirstate, parse_dirstate, PARENT_SIZE}, 15 parsers::{pack_dirstate, parse_dirstate, PARENT_SIZE},
16 status::{status, DirstateStatus, StatusOptions}, 16 status::{
17 status, BadMatch, BadType, DirstateStatus, StatusError, StatusOptions,
18 },
17 CopyMap, CopyMapIter, DirstateEntry, DirstateParents, EntryState, 19 CopyMap, CopyMapIter, DirstateEntry, DirstateParents, EntryState,
18 StateMap, StateMapIter, 20 StateMap, StateMapIter,
19 }; 21 };
20 mod filepatterns; 22 mod filepatterns;
21 pub mod matchers; 23 pub mod matchers;