--- Begin Message ---
Subject: |
[PATCH] grep: optimization of DFA by reuse of multi-byte buffers in non-UTF8 locales |
Date: |
Sun, 23 Mar 2014 22:19:36 +0900 |
Package: grep
Tags: patch
dfaexec() allocates and deallocates many buffers in non-UTF8 locales, but
it's very inefficient.
If put them on struct dfa and reuse them, when use not regex but DFA for
ANYCHAR, it will speed up about 20-30% in non-UTF8 locales.
Norihiro
patch.txt
Description: Text document
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#17070: [PATCH] grep: optimization of DFA by reuse of multi-byte buffers in non-UTF8 locales |
Date: |
Sat, 05 Apr 2014 22:12:58 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
Norihiro Tanaka wrote:
I rebased this patch, and add a bug fix to it.
Thanks. Paolo wrote it up in <http://bugs.gnu.org/17156#11>, and I just
now tweaked its ChangeLog and merged the code and installed it (patch
attached). I followed up with minor cleanups (2nd patch attached).
0001-grep-reuse-multibyte-DFA-buffers-in-non-UTF8-locales.patch
Description: Text document
0002-grep-minor-improvements-to-previous-patch.patch
Description: Text document
--- End Message ---