[MERGE] Faster diff on historical data

Lukáš Lalinský lalinsky at gmail.com
Wed Aug 1 09:25:22 BST 2007


Hi,

currently when doing something like `bzr diff -r10..11`, bzr extracts
the inventory from knit for both revision and then does the same for
each modified file. People usually use such diffs only on nearby
revisions, so the knit extraction involves a lot of duplicated work,
e.g. instead of taking the file at revision 10 and applying one delta,
it takes revision 1 and unpacks/applies 10 deltas.

The attached patch lets it to extract both files in one go. It isn't a
big win, but it makes diff -r before:x..x on bzr.dev in my repository
about 0.1 seconds faster (~10% of the total diff time).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr-diff-knit.diff
Type: text/x-patch
Size: 11878 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070801/84c2cc3a/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Toto je =?ISO-8859-1?Q?digit=E1lne?=
	=?ISO-8859-1?Q?_podp=EDsan=E1?= =?UTF-8?Q?_=C4=8Das=C5=A5?=
	=?ISO-8859-1?Q?_spr=E1vy?=
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070801/84c2cc3a/attachment-0001.pgp 


More information about the bazaar mailing list