Mercurial > public > mercurial-scm > hg
diff rust/hg-core/src/revlog/nodemap_docket.rs @ 51261:47a34afda7ad
rust-index: only access offsets if revlog is inline
Accessing the `RwLock` ended up showing up in profiles even with no contention.
Offsets only exist for inline revlogs, so gate everything behind an inline
check.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Thu, 14 Dec 2023 09:57:25 +0100 |
parents | 532e74ad3ff6 |
children | db7dbe6f7bb2 |