Skip to content
  • Stefan Beller's avatar
    repository: introduce parsed objects field · 99bf115c
    Stefan Beller authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Convert the existing global cache for parsed objects (obj_hash) into
    repository-specific parsed object caches. Existing code that uses
    obj_hash are modified to use the parsed object cache of
    the_repository; future patches will use the parsed object caches of
    other repositories.
    
    Another future use case for a pool of objects is ease of memory management
    in revision walking: If we can free the rev-list related memory early in
    pack-objects (e.g. part of repack operation) then it could lower memory
    pressure significantly when running on large repos. While this has been
    discussed on the mailing list lately, this series doesn't implement this.
    
    Signed-off-by: default avatarStefan Beller <sbeller@google.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    99bf115c