Bug 63882

Summary: wrong optflags in textutils.spec?
Product: [Retired] Red Hat Linux Reporter: kehcheng
Component: textutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-10-08 14:16:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description kehcheng 2002-04-20 04:30:17 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 
1.0.3705)

Description of problem:
The line "%define optflags -g" in textutils.spec causes all programs in the 
package to be built without any optimization.  On a 1.7 GHz Xeon workstation 
with 2 GB of memory, checking the MD5 sum of a 600 MB iso image takes 29 
seconds using /usr/bin/md5sum.  The same operation takes less than 5 seconds 
using a private copy of md5sum recompiled with the optflags line removed.



Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.time /usr/bin/md5sum xxx.iso
2.recompile md5sum with some level of optimization
3.time ./md5sum xxx.iso
	

Actual Results:  Recompiled md5sum runs much faster than /usr/bin/md5sum.
The same is true with other programs in textutils.

Expected Results:  Programs in /usr/bin should have decent, if not optimal, 
performance.

Additional info:

Comment 1 Bernhard Rosenkraenzer 2002-06-27 12:33:32 UTC
This was necessary at some point because of compiler problems, but since they 
have been fixed since, I agree it should be removed. Done in 2.0.21-4.