[PATCH 1 of 8 STABLE RFC] largefiles: performance improvement for bypass route choice

Matt Mackall mpm at selenic.com
Fri Feb 17 13:58:01 CST 2012


On Sat, 2012-02-18 at 01:07 +0900, FUJIWARA Katsunori wrote:
> # HG changeset patch
> # User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
> # Date 1329494572 -32400
> # Branch stable
> # Node ID be820a2353e7b3e9af8a59b050cd7bf8b1e38490
> # Parent  0e0060bf2f440d5cc33e5f36d99868a5380debd4
> largefiles: performance improvement for bypass route choice

> +                def hasstandin(f):
> +                    return os.path.lexists(repo.wjoin(lfutil.standin(f)))

I frankly find the terminology that largefiles uses confusing. This
would be better as "islargefile", no?

Is this really the most efficient way to do this? Can't we look for the
standin in the dirstate rather than going to the filesystem?

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list