[PATCH] revset: use "repo.changelog" instead of "list(repo)" for resource efficiency

Bryan O'Sullivan bos at serpentine.com
Wed Feb 20 12:52:41 CST 2013


On Wed, Feb 20, 2013 at 5:02 AM, FUJIWARA Katsunori
<foozy at lares.dti.ne.jp>wrote:

> I expected this patch to prevent from immediate creation of "list"
> object containing integers corresponded to all revisions in
> repository, because it may be very large and not be used.
>

The contrib/perf.py extension is useful for quantifying this sort of thing.
Revsets are very performance sensitive, and it's all too easy to regress
performance if you don't measure it. I'd appreciate it if you could post
some before/after numbers for this patch.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20130220/bf62fec6/attachment.html>


More information about the Mercurial-devel mailing list