Re: [PATCH] avoid unncessary malloc of whole file size

2019-01-24 Thread Jeff King
On Thu, Jan 24, 2019 at 01:12:15PM -0800, Junio C Hamano wrote: > Joey Hess writes: > > > When a worktree file is larger than the available memory, and a clean > > filter is in use, this avoids mallocing a buffer the whole size of the > > file when reading from the clean filter, which caused com

Re: [PATCH] avoid unncessary malloc of whole file size

2019-01-24 Thread Junio C Hamano
Joey Hess writes: > When a worktree file is larger than the available memory, and a clean > filter is in use, this avoids mallocing a buffer the whole size of the > file when reading from the clean filter, which caused commands like git > status and git commit to OOM. > > Often in this situation