speeding up commits
Martin Pool
mbp at sourcefrog.net
Thu Dec 8 07:21:31 GMT 2005
On 7 Dec 2005, duchier at ps.uni-sb.de wrote:
> I just tested an idea to speed up commits and on my test example it
> brings the time spent in read_weave_v5 from 40s to 11s:
>
> find_previous_heads invoked by Commit._store_snapshot is given a weave
> argument (which must be read from the store). However, it does not
> need a full weave: it needs only the prelude, not the actual weave of
> lines. Reading just the prelude speeds things up noticeably.
Very nice. Applied.
Please think about adding new unit tests when you add new APIs - like
get_weave_prelude_or_empty.
--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051208/b6f74237/attachment.pgp
More information about the bazaar
mailing list