Skip to content

Add support for core.deltaBaseCacheLimit configuration #1849

@jelmer

Description

@jelmer

Summary

Add support for the core.deltaBaseCacheLimit configuration option, which controls the maximum amount of memory used for caching delta base objects.

Description

The core.deltaBaseCacheLimit option limits the amount of memory used to cache base objects for delta compression. When unpacking delta objects, Git caches the base objects to speed up subsequent delta unpacking. This setting controls how much memory can be used for this cache.

Benefits

  • Better memory management during pack file operations
  • Improved performance tuning for delta operations
  • Essential for handling large repositories efficiently
  • Provides compatibility with Git's delta caching behavior

Implementation Notes

This would involve implementing a size-limited cache for delta base objects with appropriate eviction policies when the memory limit is reached.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions