commit 4f4d853e5a672ea469a2532774867305712b418e from: Stefan Sperling date: Sun Oct 24 09:41:04 2021 UTC try only 3 delta base candidates instead of 10 to speed up packing Tests by kn, thomas_adam and myself made on various repositories indicate that 3 is a good choice. Tyring 10 deltas is much slower and does not result in significantly smaller pack files. commit - a9e66726ec8e6d4997a024f572ee53719f7b9cdb commit + 4f4d853e5a672ea469a2532774867305712b418e blob - c2fe31df1b52aa2eb9e4b6dfec289f29d5dc4a1b blob + b5f4f5581bd2c0c257a81264e472be7db4785f53 --- lib/pack_create.c +++ lib/pack_create.c @@ -261,7 +261,7 @@ pick_deltas(struct got_pack_meta **meta, int nmeta, in struct got_raw_object *raw = NULL, *base_raw = NULL; struct got_delta_instruction *deltas = NULL, *best_deltas = NULL; int i, j, size, best_size, ndeltas, best_ndeltas; - const int max_base_candidates = 10; + const int max_base_candidates = 3; int outfd = -1; qsort(meta, nmeta, sizeof(struct got_pack_meta *), delta_order_cmp);