On 04/27/14 09:14 AM, Alex Xu wrote:
On 26/04/14 08:34 PM, "C. Bergström" wrote:
Pragmatically nobody gives a f* if grep has been optimized to the max
since it's usually not the bottleneck.
http://lists.freebsd.org/pipermail/freebsd-current/2010-August/019310.html
My point about grep + LTO still stands

#1 This isn't gentoo FreeBSD so it's probably irrelevant from the start - (the comparison is gnu vs bsd grep. Further - LTO won't save your butt from poor programming practices or magically turn things into efficient syscalls)

#2 The only reference to anything which the compiler could impact is
"Use Boyer-Moore (and unroll its inner loop a few times)." Finding out which flag controls that for ${CC} would have some importance. It's almost certainly combined with -O3 and or some standalone loop related optimization. (Nothing depending on LTO). If they were really clever or determined - there's probably a few GCC or other pragma which could give a hint about unrolling.
-----------
The color of my bikeshed is __________________


Reply via email to