bug#38322: GCC optimize levels makes huge impact on performance

2020-01-02 Thread Paul Eggert
On 11/22/19 5:52 PM, Paul Eggert wrote: > If we do want to tune grep for set-like operations, that suggests doing some > surgery to its internals rather than merely fiddling with -O flags. Since I last wrote, some of that surgery has been done by another grep contributor, and a simple 'grep -f fil

bug#38322: GCC optimize levels makes huge impact on performance

2019-11-22 Thread Paul Eggert
On 11/22/19 8:00 AM, Balázs Vinarz wrote: Would you mind change the default optimize level on the make configuration? Did somebody ever measured the benefits using different GCC optimalization levels? Lots of measurements have been done. They often disagree. Even if grep changed the default op

bug#38322: GCC optimize levels makes huge impact on performance

2019-11-22 Thread Balázs Vinarz
Hello there! Today I was working on two bigger, plain text, csv-like database files (file1: ~175k lines and 15MB, file2: ~ 168k lines and 14MB). I just searched for lines, using grep -f $file2 $file1. I was so surprised when I realized the search was running for minutes already without a single li