Subject: bug#51231: increase performance and usability of binary search with -P

From: Carlo Arenas <[email-masked]>
Date: Fri, 15 Oct 2021 17:33:59 -0700

The following patch increase performance of grep when looking at
binary data, without any side effects:

Summary
  'cd grep; ./src/grep -Pc foo
/Users/carlo/Downloads/FreeBSD-13.0-BETA2-amd64.vhd' ran
    1.77 ± 0.02 times faster than 'cd grep.base; ./src/grep -Pc foo
/Users/carlo/Downloads/FreeBSD-13.0-BETA2-amd64.vhd'

Carlo