Skip to content
  • Junio C Hamano's avatar
    Thin pack generation: optimization. · 5379a5c5
    Junio C Hamano authored
    
    
    Jens Axboe noticed that recent "git push" has become very slow
    since we made --thin transfer the default.
    
    Thin pack generation to push a handful revisions that touch
    relatively small number of paths out of huge tree was stupid; it
    registered _everything_ from the excluded revisions.  As a
    result, "Counting objects" phase was unnecessarily expensive.
    
    This changes the logic to register the blobs and trees from
    excluded revisions only for paths we are actually going to send
    to the other end.
    
    Signed-off-by: default avatarJunio C Hamano <junkio@cox.net>
    5379a5c5