~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to delta.h

  • Committer: John Arbash Meinel
  • Date: 2009-03-03 18:05:44 UTC
  • mto: (0.17.31 trunk)
  • mto: This revision was merged to the branch mainline in revision 4280.
  • Revision ID: john@arbash-meinel.com-20090303180544-mfgw9jsndwiwj047
Change the internals to allow delta indexes to be expanded with new source data.
Now when adding a new source, the old index entries are included in the new structure.
This generally seems to be better than having multiple indexes, as it improves the
efficiency of the internal hash map, and avoids extra iterating.
Bring back the _FAST flag. At the moment, with _FAST=True, doing bzr pack is about
37s rather than 1min, and gives 9.7MB texts, rather than 8.2MB or so.
So at the moment, it is still a useful flag to have.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 * using free_delta_index().
24
24
 */
25
25
extern struct delta_index *
26
 
create_delta_index(const struct source_info *src);
 
26
create_delta_index(const struct source_info *src,
 
27
                                   const struct delta_index *old);
27
28
 
28
29
/*
29
30
 * free_delta_index: free the index created by create_delta_index()