Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jun 2018 03:53:52 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 229326] [patch] Mk/bsd.gecko.mk remove forced -O3 optimization
Message-ID:  <bug-229326-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229326

            Bug ID: 229326
           Summary: [patch] Mk/bsd.gecko.mk remove forced -O3 optimization
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: kennethsalerno@yahoo.com

Created attachment 194619
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D194619&action=
=3Dedit
patch to remove -O3 for SET+=3DOPTIMIZED_CFLAGS (MOZ_OPTIMIZE_FLAGS)

Hi, are we sure we want to append -O3 forcibly to CFLAGS for www/firefox? I
have found it is just making the application larger compared to the default=
 -O2
set in CFLAGS but not necessarily resulting in any better performance, at l=
east
I can't really tell. For my laptop with inadequate RAM, it seems to perform
better compiled with -O2 actually, I think.

built with -O3:
> pkg info firefox | grep size
Flat size      : 123MiB
> ls -lh /usr/local/lib/firefox/{firefox,libxul.so}
-rwxr-xr-x  1 root  wheel   166K Jun 15 09:38 /usr/local/lib/firefox/firefox
-rwxr-xr-x  1 root  wheel    67M Jun 15 09:38 /usr/local/lib/firefox/libxul=
.so

built with -O2:
> pkg info firefox | grep size
Flat size      : 121MiB
> ls -lh /usr/local/lib/firefox/{firefox,libxul.so}
-rwxr-xr-x  1 root  wheel   162K Jun 24 15:51 /usr/local/lib/firefox/firefox
-rwxr-xr-x  1 root  wheel    65M Jun 24 15:51 /usr/local/lib/firefox/libxul=
.so

If anyone has any benchmarks comparing the two optimization levels for
www/firefox I would be interested to take a look. (And please indicate Fire=
fox
version, arch, cores and memory size where you ran the test.)

Taking a quick peek at about:buildconfig on Android and Fedora Linux, they =
are
using -Oz with LLVM/Clang5 and -O2 with GCC7 respectively.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-229326-7788>