Re: [PATCH v2 2/2] convert.c: stream and fast search for binary

2016-11-01 Thread Torsten Bögershausen
[] > This probably should be done as four more patches to become > reviewable. > > - One to use the CONVERT_STAT_BITS a lot more for the conversion >decision than before, > > - another to allow the caller to tell gather_stats() to give up >early with the "search_only" bits, > > - an

Re: [PATCH v2 2/2] convert.c: stream and fast search for binary

2016-10-29 Thread Duy Nguyen
On Wed, Oct 12, 2016 at 8:47 PM, wrote: > From: Torsten Bögershausen > > When statistics are done for the autocrlf handling, the search in > the content can be stopped, if e.g > - a search for binary is done, and a NUL character is found > - a search for CRLF is done, and the first CRLF is found

Re: [PATCH v2 2/2] convert.c: stream and fast search for binary

2016-10-27 Thread Junio C Hamano
tbo...@web.de writes: > From: Torsten Bögershausen > > When statistics are done for the autocrlf handling, the search in > the content can be stopped, if e.g > - a search for binary is done, and a NUL character is found > - a search for CRLF is done, and the first CRLF is found. > > Similar when