[PATCH RESEND] largefiles: speed up the check if largefiles should be added to repo requirements

Dominik Psenner dpsenner at gmail.com
Fri Oct 28 10:59:56 CDT 2011


On 10/28/2011 05:23 PM, Na'Tosha Bard wrote:
> But in any case, I do think your patch should go in (even if I think it
> can be extended a bit, and probably make some other use cases faster).

I agree with you here.

For now it's just an improvement that speeds up things in a corner case
of largefiles. It definitely needs more refactoring because it is rather
"hacky". This said, fncachestore (or maybe even basicstore) should IMHO
be extended so that one can at least query the mere existance of files
in less than O(log(n)) without crawling all the files in store by
calling datafiles() or even walking through the files in store.

Cheers!
-- 
Dominik Psenner
## OpenPGP Key Signature #################################
# Key ID: B469318C                                       #
# Fingerprint: 558641995F7EC2D251354C3A49C7E3D1B469318C  #
##########################################################

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20111028/aaf2905a/attachment.pgp>


More information about the Mercurial-devel mailing list