Commit Diff
- Commit:
33acf1a27bbf8e5a0f4eabe051384ba0d5043600
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
- Message:
- limit delta chain length in newly created pack files to 32 deltas Our former limit was 128 which is fairly high. Git uses 50 by default. A smaller limit results in slightly larger pack files but makes both packing and unpacking faster.
- Actions:
- Patch | Tree
--- lib/pack_create.c +++ lib/pack_create.c @@ -219,7 +219,7 @@ pick_deltas(struct got_pack_meta **meta, int nmeta, in } base = meta[j]; /* long chains make unpacking slow, avoid such bases */ - if (base->nchain >= 128 || + if (base->nchain >= 32 || base->obj_type != m->obj_type) continue;