##// END OF EJS Templates
merge: add mergeresult.mapaction to improve speed...
merge: add mergeresult.mapaction to improve speed As a part of [hg update] we convert all [ACTION_CREATED] merge results into [ACTION_GET] actions, and that's slightly inefficient because every insertion pays the full cost of maintaining the [mergeresult] data structure up to date. This commit adds a function [mapaction], which is faster. (saves around 0.3s on a large update involving ~400k files)

File last commit:

r50533:5844cd8e default
r50806:c7a04bfa default
Show More
Cargo.toml
19 lines | 404 B | text/plain | TOMLLexer
[package]
name = "hg-cpython"
version = "0.1.0"
authors = ["Georges Racinet <gracinet@anybox.fr>"]
edition = "2021"
[lib]
name='rusthg'
crate-type = ["cdylib"]
[dependencies]
cpython = { version = "0.7.1", features = ["extension-module"] }
crossbeam-channel = "0.5.6"
hg-core = { path = "../hg-core"}
libc = "0.2.137"
log = "0.4.17"
env_logger = "0.9.3"
stable_deref_trait = "1.2.0"
vcsgraph = "0.2.0"