rust/hg-direct-ffi/Cargo.toml
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 05 Jun 2019 11:23:25 +0200
changeset 42441 b9ff059fd194
parent 40272 a36c5e23c055
permissions -rw-r--r--
discovery: be more conservative when adjusting the sample size Since 5b34972a0094, the discovery will increase the sample size when it detect a "complex" undecided set. However this detection focussed on the number of roots only, this could regress discovery performance when the undecided set has many roots that eventually get merged into a few heads. To prevent such misbehavior, we adjust the logic to take in account both heads and roots. The sample size will be increased only if both are especially large. Performance testing on the same case as 5b34972a0094, does not show a significant difference.

[package]
name = "hgdirectffi"
version = "0.1.0"
authors = ["Georges Racinet <gracinet@anybox.fr>"]
description = "Low level Python bindings for hg-core, going through existing C extensions"

[dependencies]
libc = "*"
hg-core = { path = "../hg-core" }

[lib]
crate-type = ["staticlib"]