[MERGE] Update to Knit._check_should_delta

John Arbash Meinel john at arbash-meinel.com
Wed Dec 24 18:05:15 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to lsprof, the primary cost to "KnitVersionedFile._add()" is
actually _check_should_delta. (12.5s/23.5s in add_lines()).
This isn't a major factor in the overall time (292s), but it doesn't
hurt to fix it up.

The patch not only fixes it to make a single request of the index rather
than multiple, it also makes it correct when the compression parent is
not the left-hand parent.

(Also, this doesn't show a measurable improvement in wall-clock time for
the first 1k revs without lsprof, however the correctness portion seemed
enough to merge it.)

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklSedsACgkQJdeBCYSNAAOmJwCgyPByDM8oWFQVTrpS7dPQwPsf
zFUAn27fO2hhXSzYo3aMdeYc0pGF1XOa
=PL4R
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: knit_check_should_delta.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20081224/626b190e/attachment.diff 


More information about the bazaar mailing list