[PATCH STABLE] commit: increase perf by avoiding unnecessary filteredrevs check
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Tue Nov 20 00:54:58 CST 2012
On 20 nov. 2012, at 02:13, Durham Goode wrote:
> def __iter__(self):
> """filtered version of revlog.__iter__"""
> irevs = super(changelog, self).__iter__()
See Brodie comment on iter()
> filtered = self.filteredrevs
> if filtered:
> irevs = (i for i in irevs if i not in filtered)
In the light of your other email I'm tempted to suggest the use of itertools.ifilterfalse.
But I think Matt hates itertools. I curious what the number would be.
--
Pierre-Yves
More information about the Mercurial-devel
mailing list