mirror of
https://github.com/git/git.git
synced 2026-01-09 01:34:00 +00:00
Merge branch 'kn/bundle-dedup-optim'
Optimize the code to dedup references recorded in a bundle file. * kn/bundle-dedup-optim: bundle: fix non-linear performance scaling with refs t6020: test for duplicate refnames in bundle creation
This commit is contained in:
6
object.h
6
object.h
@@ -326,12 +326,6 @@ typedef int (*object_array_each_func_t)(struct object_array_entry *, void *);
|
||||
void object_array_filter(struct object_array *array,
|
||||
object_array_each_func_t want, void *cb_data);
|
||||
|
||||
/*
|
||||
* Remove from array all but the first entry with a given name.
|
||||
* Warning: this function uses an O(N^2) algorithm.
|
||||
*/
|
||||
void object_array_remove_duplicates(struct object_array *array);
|
||||
|
||||
/*
|
||||
* Remove any objects from the array, freeing all used memory; afterwards
|
||||
* the array is ready to store more objects with add_object_array().
|
||||
|
||||
Reference in New Issue
Block a user