Mercurial > hg
comparison rust/hg-core/src/revlog/changelog.rs @ 51397:b01e7d97e167
revlog: add a Rust implementation of `headrevsdiff`
Python implementation of `headrevsdiff` can be very slow in the worst
case compared with the `heads` computation it replaces, since the
latter is done in Rust.
Even the average case of this Python implementation is still
noticeable in the profiles.
This patch makes the computation much much faster by doing it in Rust.
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Mon, 12 Feb 2024 20:01:27 +0000 |
parents | 6603a1448f18 |
children | 918ceb5a3d25 |
comparison
equal
deleted
inserted
replaced
51396:3f37d80d3ab4 | 51397:b01e7d97e167 |
---|