Re: [PATCH 0/5] diff_filespec cleanups and optimizations

2014-01-17 Thread Junio C Hamano
Jeff King writes: > But while looking at it, I noticed a bunch of cleanups for > diff_filespec. With the patches below, sizeof(struct diff_filespec) on > my 64-bit machine goes from 96 bytes down to 80. Compiling with "-m32" > goes from 64 bytes down to 52. > > The first few patches have cleanup

[PATCH 0/5] diff_filespec cleanups and optimizations

2014-01-16 Thread Jeff King
I recently came across a repository with a commit containing 100 million paths in its tree. Cleverly, the whole repo fits into a 1.5K packfile (can you guess how it was done?). Not so cleverly, running "diff-tree --root" on that commit uses a large amount of memory. :) I do not think it is worth o