From debbugs-submit-bounces@debbugs.gnu.org Fri May 06 22:43:58 2016 Received: (at submit) by debbugs.gnu.org; 7 May 2016 02:43:58 +0000 Received: from localhost ([127.0.0.1]:42158 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aysDl-0004MT-Me for submit@debbugs.gnu.org; Fri, 06 May 2016 22:43:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36753) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ayqq6-00028G-UN for submit@debbugs.gnu.org; Fri, 06 May 2016 21:15:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ayqq0-00031f-Gf for submit@debbugs.gnu.org; Fri, 06 May 2016 21:15:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:37612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayqq0-00031b-DX for submit@debbugs.gnu.org; Fri, 06 May 2016 21:15:20 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayqpy-0003Hz-Pz for bug-gzip@gnu.org; Fri, 06 May 2016 21:15:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ayqpx-00031F-Bf for bug-gzip@gnu.org; Fri, 06 May 2016 21:15:18 -0400 Received: from mail-io0-x243.google.com ([2607:f8b0:4001:c06::243]:35267) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ayqpx-00031A-2s for bug-gzip@gnu.org; Fri, 06 May 2016 21:15:17 -0400 Received: by mail-io0-x243.google.com with SMTP id u185so15642845iod.2 for ; Fri, 06 May 2016 18:15:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=LEs0DTM1yS4S6tfaNz7Q6yfftkBU7maMkk4F6IE8Idc=; b=kIZwXsQYWJlhDav48Sdh2iYVwAfQoznKf4xCg7JhAAvh6M4FJY8WyN9LVnZypjbqHF uINjDB1cXU/kF8EvwaSLW6lrXHrig1+sFZRaL4u+9anzCxMl86kJJZ/9pAddQxEpuS6z dyCJol88tPZKwIRTQAG0jGKNH9GL+bbwvBiVO1Qfo4ftlYrlTxmW+wLv0yFPVLrQQF89 0dwVRABtFgwssmzchumW9GOxQHNmf8lXRCgXsKrS4R9AwFn2VPKGsy0QT25d1726IcZV RDSJ+0YcrdRUBumus3tn84csDXve5FZNLuT5TL4iYh2VzNJFhgnaj5ylnhB0LAaXW9Vy yGpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=LEs0DTM1yS4S6tfaNz7Q6yfftkBU7maMkk4F6IE8Idc=; b=SM82d5Kr5NBUutiJzRqKo/P8Ia+qPO2aEajp5ui56vlnE7AbCD5/zkv3FjX9eK4Kpl NIIUY3rsHIDnfGbAtr7/Kp84QGk42omOsnCMEGOGOM2PrpbOX9nt1s1faP3Y1HmLZcEa FkwW6AG/h15W0JG/a7nl5yUquGu3CQmKVrziUlvZeCK2QGXIoDGtauSkguonRB3GQvr4 ZuI8j02y3ua274jp6okriE2Ll3kLgWt5GECFYQI0YlxsZjmozCgMvjXOBWowXroY6W7a IJi3FVYzoQwzpJUO0sWfTWwePWq7YUlh+WaR4gYEzPo33ojOzOZ+KSMjUuEq3nohC9Vs I4mQ== X-Gm-Message-State: AOPr4FUs1XDPmsC8ZoyWuhB1+MER9ZmtlI+R2y7wwM+hi0rVbJvPYuXEexd2xtvGL1C7lD6+qyYU1mDH42jP5A== MIME-Version: 1.0 X-Received: by 10.107.161.140 with SMTP id k134mr28235144ioe.190.1462583715453; Fri, 06 May 2016 18:15:15 -0700 (PDT) Received: by 10.107.3.90 with HTTP; Fri, 6 May 2016 18:15:15 -0700 (PDT) Date: Fri, 6 May 2016 21:15:15 -0400 Message-ID: Subject: Gzip and CFLAGS From: Tom Smith To: bug-gzip@gnu.org Content-Type: multipart/alternative; boundary=001a1140fff0d062070532364e1f X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 06 May 2016 22:43:56 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) --001a1140fff0d062070532364e1f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello there, After having compiled gzip, I had looked at the Makefile =E2=80=9C./configure=E2=80=9D generated. Looking at CFLAGS=3D=E2=80=9D=E2=80=9D (system configuration se= ction), not many compiler flags are specified for optimization. The =E2=80=9CSpecific Targets=E2=80=9D section sets different f= lags for different systems, which are set accordingly. Currently, I am looking at =E2=80=9CCFLAGS=3D -O=E2=80=9D. I noticed that some optimization flags were not set (curious as to why): - -march=3Dnative (pentium3, athlon64, etc) (produces code for the specific architecture specified) - -O2 (recommended level to use to increase code performance ) - -pipe (makes compilation process faster) - -fomit-frame-pointer (reduces generated code size) Also, I found this article http://lists.gnu.org/archive/html/bug-gzip/2013-02/msg00000.html and it mentions setting =E2=80=93O2 and encountering an issue (it has since been f= ixed). After running some tests after I recompiled (Linux), sometimes I noticed it to be a little bit faster (at times) on x86_64. Note: There are many different conditions that cause the numbers to fluctuate, such as: # of processes running, ram usage, CPU power etc. Thank You --001a1140fff0d062070532364e1f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

He= llo there,


=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 After having compiled gzip= , I had looked at the Makefile =E2=80=9C./configure=E2=80=9D generated.

=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 Looking at CFLAGS=3D=E2=80=9D=E2=80=9D (system configuration section), not many compiler flags are specified for optimizat= ion.=C2=A0

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 The =E2=80=9CSpecific Targets= =E2=80=9D section sets different flags for different systems, which are set accordingly.

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Currently, I am= looking at =E2=80=9CCFLAGS=3D -O=E2=80=9D.


=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 I noticed that some optimi= zation flags were not set (curious as to why):

-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 -march=3Dnative (pentium3, athlon64, etc) (produces code for the specific architecture specified)

-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 -O2 (recommended level to use to increase code performance )

-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 -pipe (makes compilation process faster)<= /span>

-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 -fomit-frame-pointer (reduces generated code size)


Also, I found this article http://lists.gnu.org/archive/html/bug-gzip/2013-02/msg00000.= html and it mentions setting =E2=80=93O2 and encountering an issue (it has since= been fixed).

After running some tests after I recompiled (Linux), sometimes I noticed it to be a littl= e bit faster (at times) on x86_64.

Note: There are many different conditions that cause the numbers to fluctuate, such as: # of processes running, ram usage, CPU power etc.

=C2=A0


Thank You

--001a1140fff0d062070532364e1f-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 06 22:52:39 2016 Received: (at 23474-done) by debbugs.gnu.org; 7 May 2016 02:52:39 +0000 Received: from localhost ([127.0.0.1]:42163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aysMB-0004Zz-0U for submit@debbugs.gnu.org; Fri, 06 May 2016 22:52:39 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:39252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aysM9-0004Zk-FD for 23474-done@debbugs.gnu.org; Fri, 06 May 2016 22:52:38 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2BA0F160FC0; Fri, 6 May 2016 19:52:31 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id n_O_rR_F_iA7; Fri, 6 May 2016 19:52:30 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 79D02160FF5; Fri, 6 May 2016 19:52:30 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Wock5HBvsZx8; Fri, 6 May 2016 19:52:30 -0700 (PDT) Received: from [192.168.1.9] (unknown [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 5DB04160FC0; Fri, 6 May 2016 19:52:30 -0700 (PDT) Subject: Re: bug#23474: Gzip and CFLAGS To: Tom Smith , 23474-done@debbugs.gnu.org References: From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <572D586A.6050309@cs.ucla.edu> Date: Fri, 6 May 2016 19:52:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: 23474-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) Tom Smith wrote: > Currently, I am looking at =E2=80=9CCFLAGS=3D -O=E2=80=9D. You don't mention which gzip version. If you haven't already, please try = the current version, gzip 1.8. Its 'configure' script should default to -O2 optimization for GCC, and to no optimization for other compilers. To some= extent this is arbitrary. Tweaking this further is up to you. For example, -march=3Dnative is better for some usages but not for others, which is wh= y it is not the default. From unknown Sat Jun 14 19:12:45 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 04 Jun 2016 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator