Mercurial > hg
comparison setup.py @ 19061:36067f5baf24
annotate: discard refcount of discarded annotation for memory efficiency
Before this patch, refcount (managed in "needed") of the annotation
result is kept as 1, even if corresponding annotation result is
discarded from "hist", because it isn't decreased and discarded.
In the history tree including merging revision, the most recent common
ancestor of merged revisions is scanned twice. Refcount of such
ancestor never becomes 0, because refcount is started from 1 at the
second scanning.
This prevents annotation results of merging revision in "hist" from
being discarded, and decreases memory efficiency.
This patch discards refcount of the annotation result, when the
corresponding annotation is discarded from "hist".
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Thu, 18 Apr 2013 19:50:04 +0900 |
parents | 012780620d4f |
children | 2b2a2e858fb7 |
comparison
equal
deleted
inserted
replaced
19060:c010cb6fdef7 | 19061:36067f5baf24 |
---|