Firefox sloooooooooow
- Started
- Last post
- 34 Responses
- ukit0
Did you guys see the article posted earlier?
"That forum thread revealed what the true cause was of this disk thrashing and delay at startup. I have to warn you though. If you're a developer, your software engineering fire will die a little when you read the true cause and from then on you will have to fight off thoughts of giving up development altogether and apply for a job in marketing or HR. So what was it, what's the cause of this slowness? It's NSS. What? The Network Security System. It turns out that NSS needs to do all kinds of encryption and other security related tasks (which seems kind of logical), and for that it needs random numbers. Sounds reasonable, right? Well, it kind of does.
True random numbers are hard to produce, because in a computer system, nothing is really random, it all is a result of some action which was a result of some action etc. etc. The clever boys and girls of the NSS team had to crack this problem: how to get 'true' random numbers which are as random as possible? Instead of using the randomization functionality of the underlying operating system (which has this feature build-in as every TCP stack for example needs it), they did what Mozilla in general always does: they re-invented the wheel. Nothing against re-inventing stuff, don't get me wrong, not every wheel is as equal as the other one, and you can never have enough good, re-invented, shiny wheels. Though, the downside of re-inventing wheels is that along the way you can't make mistakes, it has to be better than the previous invented wheels. No-one wants to use your square new wheel for example.
To solve the problem of the randomization, the NSS team came up with something clever, something so great, that no-one else had ever thought of that before: they decided to read the files in all possible temp folders on disk with multiple threads so these files can be used as seeds for the randomization. Brilliant. Temp folders! Why hasn't anyone else thought of using a disk-based resource for random number generation! I mean, these folders change every couple of milliseconds, have immediate access, no latency to read their contents and are never filled to the brim with useless cruft!
That is, if you're on the NSS team. In the outside world, things are a tad different. You see, Firefox v3.5 reads the Internet Explorer Cache and the central Windows temp folder in your user profile, through its NSS subsystem. Not only is it, in my humble opinion, not done to read another application's caches or temp folders, it's also amazingly ignorant towards the real bottlenecks of our modern computers: hard-drives. If you're using a virus-scanner which is set to paranoia mode, this whole temp folder traversal by NSS will be even slower because every file accessed will be scanned by the virus scanner. Over and over and over again..."
F*cking nerds...
- utopian0
Are you sure it is not QBN? QBN is extremely slow at times, I am using Safari.
- janne760
yes, very sloooooooooow startup here as well..
- platformic0
Yeap,FF 3.5 is crap,i'm considering go back to previous version.
- invisiblechamber0
confirmed. went back to 2.0.
- with pic lens and rip on mac (non-intel)invisiblechamber
- ukit0
One word > Chrome
- BusterBoy0
So much for progressssssssssssss.
- akrokdesign0
BB, just cause something is new/newer, doesn't mean its better.
- ukit0
I think companies should put at least as much weight in speed/ performance as features when they are developing software. Having to deal with bloated software that wastes your time is fucking stupid.
- acescence0
this explains it, it's how they're generating random numbers...
- akrokdesign0
"a new milestone in browsing"
...we're now 2x slower. that is new. lol.
- comicsans0
Another performance issue with Firefox 3.x is its use of sqlite databases to hold various things like your history. These get fragmented over time and can result in major slowdowns. The following link shows how you can speed database access by performing regular maintenance. And yes, this should not be necessary
http://mozillalinks.org/wp/2009/…
Mac users will have sqlite3 installed but this trick requires command line magic