commit 93bba072c2b45bc5879500248f203610dfa1405b from: Stefan Sperling date: Wed Mar 18 16:13:46 2020 UTC use qsort(3) instead of mergesort(3) to avoid a large spike in memory usage commit - 976846014daddf292e080f2857ae63173f7b1433 commit + 93bba072c2b45bc5879500248f203610dfa1405b blob - 6d9aba3a2c465cbd5214ad2a5a407faabacde49a blob + 9ebc19818bde5e4d972fff5825b41a7fd25b6546 --- libexec/got-index-pack/got-index-pack.c +++ libexec/got-index-pack/got-index-pack.c @@ -511,7 +511,7 @@ make_packidx(struct got_packidx *packidx, int nobj, int i; uint32_t idx = 0; - mergesort(objects, nobj, sizeof(struct got_indexed_object), + qsort(objects, nobj, sizeof(struct got_indexed_object), indexed_obj_cmp); memset(packidx->hdr.fanout_table, 0,