Mercurial > public > mercurial-scm > hg
view rust/hg-core/src/dirstate_tree.rs @ 51257:c4f1a790bda8
rust-index: use a `BitVec` instead of plain `Vec` for heads computation
The `Vec` method uses one byte per revision, this uses 1 per 8 revisions,
which improves our memory footprint. For large graphs (10+ millions), this
can make a measurable difference server-side.
I have seen no measurable impact on execution speed.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Wed, 29 Nov 2023 15:58:24 -0500 |
parents | 3d0a9c6e614d |
children |
line wrap: on
line source
pub mod dirstate_map; pub mod on_disk; pub mod owning; pub mod path_with_basename; pub mod status;