mirror of
https://github.com/git/git.git
synced 2024-11-30 21:44:02 +08:00
647982bb71
On my mirror of linux.git forkgroup with 780 islands, this saves nearly 4G of heap memory in pack-objects. This savings only benefits delta island users of pack bitmaps, as the process would otherwise be exiting anyways. However, there's probably not many delta island users, but the majority of delta island users would also be pack bitmaps users. Signed-off-by: Eric Wong <e@80x24.org> Helped-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Helped-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
20 lines
602 B
C
20 lines
602 B
C
#ifndef DELTA_ISLANDS_H
|
|
#define DELTA_ISLANDS_H
|
|
|
|
struct commit;
|
|
struct object_id;
|
|
struct packing_data;
|
|
struct repository;
|
|
|
|
int island_delta_cmp(const struct object_id *a, const struct object_id *b);
|
|
int in_same_island(const struct object_id *, const struct object_id *);
|
|
void resolve_tree_islands(struct repository *r,
|
|
int progress,
|
|
struct packing_data *to_pack);
|
|
void load_delta_islands(struct repository *r, int progress);
|
|
void propagate_island_marks(struct commit *commit);
|
|
int compute_pack_layers(struct packing_data *to_pack);
|
|
void free_island_marks(void);
|
|
|
|
#endif /* DELTA_ISLANDS_H */
|