cvs commit: src/gnu/usr.bin/grep dfa.c dfa.h grep.c grep.h mbcache.h search.c

Tim J. Robbins tjr at FreeBSD.org
Sun Jul 4 09:16:59 PDT 2004


tjr         2004-07-04 16:16:59 UTC

  FreeBSD src repository

  Modified files:
    gnu/usr.bin/grep     dfa.c dfa.h grep.c grep.h search.c 
  Added files:
    gnu/usr.bin/grep     mbcache.h 
  Log:
  Make grep run much (~10x) faster in multibyte locales by caching the wide
  character representation of input data across calls to dfaexec(), and by
  caching the lengths of character across calls to check_multibyte_string().
  
  Obtained from:  Fedora (Tim Waugh)
  
  Revision  Changes    Path
  1.18      +60 -23    src/gnu/usr.bin/grep/dfa.c
  1.8       +4 -1      src/gnu/usr.bin/grep/dfa.h
  1.27      +41 -22    src/gnu/usr.bin/grep/grep.c
  1.7       +4 -1      src/gnu/usr.bin/grep/grep.h
  1.1       +11 -0     src/gnu/usr.bin/grep/mbcache.h (new)
  1.17      +68 -27    src/gnu/usr.bin/grep/search.c


More information about the cvs-src mailing list