El 16/08/14 a las 11:36, Paul Eggert escribió: > Santiago wrote: > >Another solution would be to don't check if binary files are valid > >(passing PCRE_NO_UTF8_CHECK to pcre_exec), but I don't know if that'd > >avoid security holes > > It wouldn't. (We already tried it.) > Another try. This patch is by far more efficient. With the previous patch #1: % time grep -P faz /usr/bin/* ... grep: /usr/bin/X11: Es un directorio grep -P faz /usr/bin/* 519,78s user 0,32s system 99% cpu 8:41,19 total With this one: % time src/grep -P faz /usr/bin/* src/grep -P faz /usr/bin/* 7,36s user 0,33s system 99% cpu 7,695 total Cheers, Santiago