Merge branch 'ab/index-pack-retain-child-bases' into next

"git index-pack" has been optimized by retaining child bases in the
delta cache instead of immediately freeing them, letting the existing
cache limit policy decide eviction.

* ab/index-pack-retain-child-bases:
  index-pack: retain child bases in delta cache
This commit is contained in:
Junio C Hamano
2026-06-12 05:46:58 -07:00

View File

@@ -1212,7 +1212,6 @@ static void *threaded_second_pass(void *data)
list_add(&child->list, &work_head);
base_cache_used += child->size;
prune_base_data(NULL);
free_base_data(child);
} else if (child) {
/*
* This child does not have its own children. It may be