~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/delta.h

Do a lot of renaming.

Change the config from 'max_entries_per_source' to 'max_bytes_to_index'.
I'm not 100% happy, because it is max_bytes_to_delta_index_per_source, but
that is just getting rediculously long.
Internally, change the code to take a 'settings' function, which currently
returns a tuple. I'm thinking to change it to a dict.

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
 * The given buffer must not be freed nor altered before free_delta_index() is
43
43
 * called. The resultant struct must be freed using free_delta_index().
44
44
 *
45
 
 * :param max_entries: Limit the number of regions to sample to this amount.
46
 
 *      Useful if src can be unbounded in size, but you are willing to trade
47
 
 *      match accuracy for peak memory.
 
45
 * :param max_bytes_to_index: Limit the number of regions to sample to this
 
46
 *      amount of text. We will store at most max_bytes_to_index / RABIN_WINDOW
 
47
 *      pointers into the source text.  Useful if src can be unbounded in size,
 
48
 *      and you are willing to trade match accuracy for peak memory.
48
49
 */
49
50
extern delta_result
50
51
create_delta_index(const struct source_info *src,
51
52
                   struct delta_index *old,
52
53
                   struct delta_index **fresh,
53
 
                   int max_entries);
 
54
                   int max_bytes_to_index);
54
55
 
55
56
 
56
57
/*