Anyone care to explain to me why...
Dec. 12th, 2008 09:32 amMy email app (Thunderbird) takes up 1-2% of CPU to sit there happily checking and displaying email.
GMail running in Firefox takes up 35% of CPU.
Winamp will stream internet radio while taking up 2-3% of CPU
Deezer (flash music streaming site) in Firefox takes up 40% of CPU to do the same thing.
I know that Flash is going to be less efficient than something running separately - but why the hell is it 10x slower? And the same with AJAX - why on earth does sitting there with a connection to google, doing nothing, take up that much CPU?
GMail running in Firefox takes up 35% of CPU.
Winamp will stream internet radio while taking up 2-3% of CPU
Deezer (flash music streaming site) in Firefox takes up 40% of CPU to do the same thing.
I know that Flash is going to be less efficient than something running separately - but why the hell is it 10x slower? And the same with AJAX - why on earth does sitting there with a connection to google, doing nothing, take up that much CPU?
no subject
Date: 2008-12-12 09:37 am (UTC)IMO, if you want to write an app that's as responsive as a winforms app - then just write one - much quicker and easier... and with ClickOnce for installs/updates the one real issue there went away (to my mind).
no subject
Date: 2008-12-12 09:41 am (UTC)no subject
Date: 2008-12-12 09:45 am (UTC)no subject
Date: 2008-12-12 09:46 am (UTC)no subject
Date: 2008-12-12 09:49 am (UTC)I use GMail with Tbird by pointing Tbird at imap.gmail.com and smtp.gmail.com just like any other mail service. And no, I am not seeing stupid CPU usage figures as a result of that.
no subject
Date: 2008-12-12 09:50 am (UTC)no subject
Date: 2008-12-12 09:54 am (UTC)no subject
Date: 2008-12-12 09:54 am (UTC)And yes, _I_ run Thunderbird to read my gmail mail. Julie, on the other hand, prefers the web interface.
no subject
Date: 2008-12-12 09:52 am (UTC)no subject
Date: 2008-12-12 09:54 am (UTC)no subject
Date: 2008-12-12 04:29 pm (UTC)no subject
Date: 2008-12-12 09:55 am (UTC)no subject
Date: 2008-12-12 04:30 pm (UTC)no subject
Date: 2008-12-12 11:45 am (UTC)The answer is that the other applications are doing more (like say interpreting a language) on top of the existing task.
no subject
Date: 2008-12-12 11:53 am (UTC)Winamp is written using the native window controls, with some customization on the top, and a fairly refined mp3 decoder.
Firefox is running ontop of XUL/Javsscript to define the user interface components and the interactivity.
This is then loading a third party component to run an actionscript vm telling it what to connect to and what to do with it.
It is a bit like asking why a lorry has a bigger engine than a car because they both drive on roads.
no subject
Date: 2008-12-12 11:55 am (UTC)no subject
Date: 2008-12-12 06:45 pm (UTC)no subject
Date: 2008-12-12 07:09 pm (UTC)no subject
Date: 2008-12-12 11:55 am (UTC)1. Extensions. I don't have many extensions, and when I leave ff sitting on gmail, after it's all loaded up, it consumes less than 1% of my CPU, with occasional blips of up to about 10%.
Firefox extensions have to go through XUL, Javascript, and all manner of bits of interface that will inherently slow down their operation. I suspect you just have an extension that's badly written.
2. Garbage collection. Particularly if you have extensions that are haemorragging objects.
My suggestion: try disabling extensions in turn and see which ones make a difference.
no subject
Date: 2008-12-12 11:56 am (UTC)no subject
Date: 2008-12-12 12:08 pm (UTC)no subject
Date: 2008-12-12 01:25 pm (UTC)no subject
Date: 2008-12-12 04:31 pm (UTC)no subject
Date: 2008-12-12 12:05 pm (UTC)no subject
Date: 2008-12-12 03:32 pm (UTC)Which is handled by the native app when it wants to and can be optimized but by Flash apps the application has no real control so Flash is constantly doing housekeeping, and so is the app Flash is embedded in.
After all you are running a sandbox inside a sandbox how in hell is that going to be effecient?
no subject
Date: 2008-12-12 04:33 pm (UTC)Of course the app could be doing something else that is stupid.
no subject
Date: 2008-12-12 04:36 pm (UTC)no subject
Date: 2008-12-12 04:43 pm (UTC)no subject
Date: 2008-12-13 05:06 pm (UTC)no subject
Date: 2008-12-13 05:09 pm (UTC)I find that Safari becomes sluggish over time. On those occasions closing Gmail (or my own internal apps page which has enormous amounts of naievely written JS) freezes Safari for some time. I imagine this is because both apps are leaking references or something, and when I close the tab they all get collected.
no subject
Date: 2008-12-13 05:10 pm (UTC)no subject
Date: 2008-12-12 04:56 pm (UTC)I say this as someone notorious for fifteen billion plugins running on a piss poor outdated system. Restarting Fx every few hours is the only way my older PC can keep running.
Fx+flash+plugins+AJAX+gmail? You're doomed, if it matters.
no subject
Date: 2008-12-13 05:04 pm (UTC)It is using 156MB of RAM, but I wouldn't dream of a system with less than 2Gig in it, so that's ok :->