LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-03-2011, 07:27 AM   #1
lonestar_italy
Member
 
Registered: Nov 2010
Location: Italy
Distribution: Slackware64-current
Posts: 169

Rep: Reputation: 67
Firefox 4 speed


Hi,

few days ago I read this: http://digitizor.com/2011/04/30/ff6-fast-less-sluggish/ and I thought: cool!

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?
 
Old 05-03-2011, 07:36 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
So, they mean FF is faster on Window$ ? That's BS. I've used FF on both, and even back in the day it was slower on Window$.
 
Old 05-03-2011, 07:41 AM   #3
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
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.
 
Old 05-03-2011, 07:51 AM   #4
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
Quote:
Originally Posted by lonestar_italy View Post
Hi,

few days ago I read this: http://digitizor.com/2011/04/30/ff6-fast-less-sluggish/ and I thought: cool!

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
 
Old 05-03-2011, 08:05 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
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).
 
Old 05-03-2011, 08:17 AM   #6
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
Quote:
Originally Posted by H_TeXMeX_H View Post
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.
 
Old 05-03-2011, 08:18 AM   #7
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Rep: Reputation: 67
Why would GCC compiler optimisation flags (-O2, -O3 or any other) cause the binary to be functionally different?
 
Old 05-03-2011, 08:29 AM   #8
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
Quote:
Originally Posted by brixtoncalling View Post
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

Each -O level adds compiler option.
http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

Last edited by disturbed1; 05-03-2011 at 08:32 AM.
 
Old 05-03-2011, 08:40 AM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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.
 
Old 05-03-2011, 08:42 AM   #10
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Rep: Reputation: 67
Quote:
Originally Posted by disturbed1 View Post
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).
 
Old 05-03-2011, 09:00 AM   #11
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
Quote:
Originally Posted by H_TeXMeX_H View Post
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.
 
Old 05-03-2011, 11:42 AM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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.
 
Old 05-04-2011, 06:25 AM   #13
rmjohnso
Member
 
Registered: Mar 2006
Location: Wisconsin
Distribution: Slackware64-Current
Posts: 294

Rep: Reputation: 43
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.
 
Old 05-04-2011, 06:47 AM   #14
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by rmjohnso View Post
I think with Firefox 4, the Mozilla team has started to release pre-compiled 64-bit versions, but I could be mistaken.
Yes, they do. However, I just compile it.
 
Old 05-04-2011, 07:30 AM   #15
lonestar_italy
Member
 
Registered: Nov 2010
Location: Italy
Distribution: Slackware64-current
Posts: 169

Original Poster
Rep: Reputation: 67
Quote:
Originally Posted by bsdunix View Post
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?
 
  


Reply

Tags
firefox, gcc, optimization, speed



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I speed up firefox? randell6564 Ubuntu 8 06-02-2006 12:25 PM
Firefox: slooooww!!! how to speed up? forrest44 Linux - Software 3 01-18-2006 01:03 PM
How to increase speed of firefox!!!!!!! Lier Linux - Software 3 08-16-2005 05:00 PM
Speed up Firefox mdg Linux - Software 7 09-17-2004 12:16 PM
Firefox 0.9.1 speed problems LavaDevil94 Linux - Software 1 07-30-2004 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration