sapling/scripts
Jun Wu 3ed8d7b512 smartlog: add a simple ancestor cache
Summary:
`revlog.ancestor` is expensive on long changelog, but is only called a few
(about 30) times for smartlog usage. Therefore we could simply cache the
result in a key-value database.

This speeds up smartlog by about 200ms.

Test Plan: Added a new test

Reviewers: #mercurial, stash

Reviewed By: stash

Subscribers: stash, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D5135746

Signature: t1:5135746:1495783503:411260551fd29fda42c9fc809b56f8f77fb2eaf4
2017-05-26 09:03:58 -07:00
..
hg-new-workdir test-check: backport test-check-execute from core hg 2016-10-18 17:58:45 +01:00
lint.py scripts: unify spwaning run-test logic 2016-10-28 13:58:48 +01:00
scm-prompt.sh scm-prompt: fix _dotfiles_scm_info 2017-04-25 10:56:35 -07:00
traceprof.py smartlog: add a simple ancestor cache 2017-05-26 09:03:58 -07:00
unit.py arcanist: support arc unit --all 2017-04-10 11:44:32 -07:00
utils.py unittests: drop special casing of lz4revlog extension 2017-01-19 12:58:38 -08:00
with-hg-dev arc: source hg-dev automatically 2017-04-05 13:17:03 -07:00