SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Then I thought more: but... wait... on Slackware, Firefox 4 is being compiled from sources, and Slackware 13.37 uses GCC 4.5.2! This should mean we're already enjoying a faster Firefox compared to the average one, without waiting for version 6!
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761
Rep:
Logically that would make sense, but speed testing is relative to the hardware at hand and how well the software code is optimized.
That being said, my unscientific test of FF4 in Slack64 13.37 shows no performance degradation compared to the latest FF3 in Slack64 13.1 on the same computer.
Then I thought more: but... wait... on Slackware, Firefox 4 is being compiled from sources, and Slackware 13.37 uses GCC 4.5.2! This should mean we're already enjoying a faster Firefox compared to the average one, without waiting for version 6!
Did I think it right?
I think you missed this part -
Quote:
with aggressive optimization (-O3) and profile guided optimization enabled.
Slackware's Firefox is built with -O. Which is the safe, mature, and most compatible option. Even using -O2 or -Os can lead to strange rendering errors. PGO is nice on paper, not 100% in real life though.
Personally I'd much rather have a stable, fully compatible Web Browser that renders the majority of websites correctly, rather than one that produces 0.000000002% better benchmark numbers, crashes now and then, and fails to render some sites --- for that we have Google Chrome
Originally Posted by disturbed1;4345007
Slackware's Firefox is built with -O[b
.[/b] Which is the safe, mature, and most compatible option. Even using -O2 or -Os can lead to strange rendering errors. PGO is nice on paper, not 100% in real life though.
Are you sure about that ? Because I've been using -O2 for some time and have not had rendering errors because of it. I've had rendering issues mostly because of font sizes that I use (large).
Are you sure about that ? Because I've been using -O2 for some time and have not had rendering errors because of it. I've had rendering issues mostly because of font sizes that I use (large).
Positive.
O2/Os does work pretty good here on a couple of PCs, but have seen some strange rendering errors on other PCs. We have 15 or so PCs here, and a handful of laptops. I've seen enough corruption and failed renderings to not deploy it.
Could have sworn it was well known that Mozilla's code base is messy and not optimization friendly. https://bbs.archlinux.org/viewtopic.php?id=86692
I'm sure Google will turn up a few 1000 other hits.
Why would GCC compiler optimisation flags (-O2, -O3 or any other) cause the binary to be functionally different?
Sometimes, misinformation around the Internet leads people to believe that passing flags will automagically create faster binaries. This is done without understanding the code base.
Firefox is already optimized. Each module that Firefox compiles has a different optimize level. Cairo, pixman and sqlite are compiled at -O2 by default, while the js engine uses -O3. I trust the Mozilla devs know their own code better than I do
I would never use -O3, I've seen first hand how this causes instability and problems in programs. In FF I have not noticed any major issues with -O2, so I'll keep using it.
Sometimes, misinformation around the Internet leads people to believe that passing flags will automagically create faster binaries. This is done without understanding the code base.
I didn't say faster or slower. I am asking (genuinely) why compiler optimisation would create a functionally different binary (ie a Firefox binary with rendering errors).
I would never use -O3, I've seen first hand how this causes instability and problems in programs. In FF I have not noticed any major issues with -O2, so I'll keep using it.
Exactly, and I should have stated that - If it works for you use it!
I did do a couple of PGO builds before, but found the fruit not worth the labor
Quote:
I didn't say faster or slower. I am asking (genuinely) why compiler optimisation would create a functionally different binary (ie a Firefox binary with rendering errors).
Each O level compiles the source code in a different manner. If you scan over that link I posted, it states what each optimization level adds. Some source code just does not play well with higher O levels, once in a while there will be no difference, the code fails to compile at all .... the differences are vast. GCC itself has been known to produce errors as well.
Definitely the PGO is highly overrated, I just use basic, safe compile optimizations '-march=native -O2 -pipe -fPIC' and maybe run sqlite vacuum once in a while.
I think the discussion around compiler flags is interesting, but to bring the discussion back to the OP's question...
If you are running Slackware 32-bit, then you are using a binary that the Mozilla team releases and that Pat V. repackages as a Slackware package. If you are running Slackware 64-bit, Pat V. compiles Firefox from source. I think with Firefox 4, the Mozilla team has started to release pre-compiled 64-bit versions, but I could be mistaken.
That being said, my unscientific test of FF4 in Slack64 13.37 shows no performance degradation compared to the latest FF3 in Slack64 13.1 on the same computer.
uh? FF4 should be something like 10 times faster than FF3 on same system! how can you see no difference?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.