[darcs-users] darcs patch: fpstring.c: switch a memchr for memrchr (and 2 more)

David Roundy droundy at darcs.net
Tue Apr 29 13:49:35 UTC 2008


On Mon, Apr 28, 2008 at 05:05:39PM -0400, gwern0 at gmail.com wrote:
> Fri Apr 25 16:01:53 EDT 2008  gwern0 at gmail.com
>   * fpstring.c: switch a memchr for memrchr
>   See <http://bugs.darcs.net/issue814>; memrchr speeds up is_funky quite a bit and thus helps whatsnew -s. It doesn't seem to break (any more) tests.
> 
> Sun Apr 27 19:39:47 EDT 2008  gwern0 at gmail.com
>   * Diff.lhs: has_bin only inspects first 4096 characters
>   This is an optimization for large files, it saves running has_funky on gigs and gigs of data when pretty much all binary files give the truth away within a few characters.
> 
> Sun Apr 27 19:41:09 EDT 2008  gwern0 at gmail.com
>   * Diff.lhs, Prefs.lhs: add docs for 4096 optimization

Applied, thanks!
-- 
David Roundy
Department of Physics
Oregon State University


More information about the darcs-users mailing list