comparison rust/hg-cpython/src/dirstate.rs @ 44327:71e13cfd6154 stable

rust-dirstatemap: add `NonNormalEntries` class This fix introduces the same encapsulation as the `copymap`. There is no easy way of doing this any better for now. `hg up -r null && time HGRCPATH= HGMODULEPOLICY=rust+c hg up tip` on Mozilla Central, (not super recent, but it doesn't matter): Before: 7:44,08 total After: 1:03,23 total Pretty brutal regression! This is a graft on stable of cf1f8660e568 Differential Revision: https://phab.mercurial-scm.org/D8111
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 12 Feb 2020 23:23:59 +0100
parents 6a88ced33c40
children f96b28aa4b79
comparison
equal deleted inserted replaced
44326:58c74a517a00 44327:71e13cfd6154
10 //! 10 //!
11 //! From Python, this will be seen as `mercurial.rustext.dirstate` 11 //! From Python, this will be seen as `mercurial.rustext.dirstate`
12 mod copymap; 12 mod copymap;
13 mod dirs_multiset; 13 mod dirs_multiset;
14 mod dirstate_map; 14 mod dirstate_map;
15 mod non_normal_entries;
15 mod status; 16 mod status;
16 use crate::dirstate::{ 17 use crate::dirstate::{
17 dirs_multiset::Dirs, dirstate_map::DirstateMap, status::status_wrapper, 18 dirs_multiset::Dirs, dirstate_map::DirstateMap, status::status_wrapper,
18 }; 19 };
19 use cpython::{ 20 use cpython::{