bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Paul Eggert
Subject: bug#38322: GCC optimize levels makes huge impact on performance
Date: Fri, 22 Nov 2019 17:52:53 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2

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 optimization level (which I'm not sure is a good idea), distros like Ubuntu often override the default and if so, changes to the default wouldn't help you.

I know that this is a special use case, but the improvement is huge.
I'm looking forward for your feedback.

It sounds like you're using grep to do set subtraction; is this a common-enough usage to be worth special-casing grep for? (One could argue that it's easy enough to do set subtraction with Awk or Python or whatever....) 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]