Skip to content
  • Jeff King's avatar
    diffcore-break: free filespec data as we go · f4f19fb6
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    As we look at each changed file and consider breaking it, we
    load the blob data and make a decision about whether to
    break, which is independent of any other blobs that might
    have changed. However, we keep the data in memory while we
    consider breaking all of the other files. Which means that
    both versions of every file you are diffing are in memory at
    the same time.
    
    This patch instead frees the blob data as we finish with
    each file pair, leading to much lower memory usage.
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    f4f19fb6