Surfing On A Mac Is Slooooow
This has probably been posted before but I'm getting real frustrated at how slow Safari, FireFox, IE, Mozilla and Netscape renders it pages under OSX. I?m a web-app programmer for a financial corporation; I create extensive reports that when printed out take up at least 10 ? 15 pages of paper. On Windows, Linux, Solaris or BSD these reports render in about 10 seconds, OSX 55 ? 1:20. It goes for sites with lots of pictures or graphs as well. Anybody have some speed-them-up techniques that I can borrow because this is really starting to piss me off. My Boss is also a Mac user and he?s starting to think I write bloated programs. This is not the case, in fact I?ve learned better programming techniques trying to optimize my code just for Mac users.
Example of machines used;
Powerbook G4 12 1.33ghz 1.25gb <- Mine
Powerbook G4 TI 1ghz 1gb
PowerMac G4 Dual 1.25ghz 1gb
iMac G5 1.8ghz 1gb
Example of machines used;
Powerbook G4 12 1.33ghz 1.25gb <- Mine
Powerbook G4 TI 1ghz 1gb
PowerMac G4 Dual 1.25ghz 1gb
iMac G5 1.8ghz 1gb
Comments
Originally posted by Relic
This has probably been posted before but I'm getting real frustrated at how slow Safari, FireFox, IE, Mozilla and Netscape renders it pages under OSX. I?m a web-app programmer for a financial corporation; I create extensive reports that when printed out take up at least 10 ? 15 pages of paper. On Windows, Linux, Solaris or BSD these reports render in about 10 seconds, OSX 55 ? 1:20. It goes for sites with lots of pictures or graphs as well. Anybody have some speed-them-up techniques that I can borrow because this is really starting to piss me off. My Boss is also a Mac user and he?s starting to think I write bloated programs. This is not the case, in fact I?ve learned better programming techniques trying to optimize my code just for Mac users.
Example of machines used;
Powerbook G4 12 1.33ghz 1.25gb <- Mine
Powerbook G4 TI 1ghz 1gb
PowerMac G4 Dual 1.25ghz 1gb
iMac G5 1.8ghz 1gb
I noticed that you gave not a single example of any of the non-Macs used. Without this information, no one can either dispute your contentions or help you find a solution for your problem. Without speaking to the accuracy of your observations, I have counterexamples in my own professional life.
Originally posted by Mr. Me
I noticed that you gave not a single example of any of the non-Macs used. Without this information, no one can either dispute your contentions or help you find a solution for your problem. Without speaking to the accuracy of your observations, I have counterexamples in my own professional life.
PC,s Used;
Compaq d530 2.8ghz 512mb
Sun Blade 150 650mhz 1gb
Sun Ultra 60 Dual 350mhz 2gb
Dell Laptop 1.5 mhz 1gb
Except for the Compaq these are pretty slow machines.
Thanks
My Boss is also a Mac user and he?s starting to think I write bloated programs.
You'll have to explain how that relates to opening a web page.
From personal experience, and through a test just then in which I loaded a 271 page document in around 13 seconds, I'd have to say I haven't seen what problems you're talking about. The part that took the longest was actually getting the file.
It should be noted I work quite regularly with both PCs and Macs and since Safari came out I really haven't seen any substantial speed difference. It is possible your issues lie with OpenGL and how macs draw certain things. If that's the case then I'd suggest the problem will be fixed come Tiger.
Originally posted by Telomar
You'll have to explain how that relates to opening a web page.
A lot, the pages are created dynamically from PHP and MySQL. Poor scripting is usually the main cause for slow performance. I also think it?s the graphics sub-system. I still get those spinny wheels of death on a regular bases when displaying heavy graphics and I still haven?t seen a Mac albeit the new dual G5?s that can resize a Safari window or iTunes without jerking.
Originally posted by ijerry
I think your problem my lie with PHP and Mysql. I believe that the code is on the server for those databases, with that it checks for what web browser you are using then reformats the data accordingly...I further believe that they have trouble identifying what browser is what when it comes to the Mac side. They are optimized for IE. So, that may be your problem, or I could just be talking out of my ass again.
Thanks for the reply; PHP is a server side scripting language that generates (echoes/prints) HTML according to conditions met in the program, i.e. if (this) then(that). Unlike JavaScript, the browser cannot directly parse(execute) PHP code. The only way PHP would not be compatible with the browser is if I intentionally echoed out a HTML tag or JavaScript function that the browser didn?t support. As for MySQL, it communicates directly with PHP hence the browser doesn?t know it exists.
After a few days it starts getting s l o w...
Originally posted by Amorph
Just to rule out the obvious things: Does quitting and relaunching Safari have any effect?
After a few days it starts getting s l o w...
If I clear the cache I'll get a few seconds. The thing is for everyday surfing OSX is fine, just as fast as a PC. However, when surfing on content rich pages or "self made super reports" it's slow.
One thing that I might suggest is that Safari seems to halt doing everything when it's waiting for more data. Often I'll be half way through rendering a page, then safari will sit there with a beach ball as it waits for file 13/18. Then it will get it and continue making the page. With PHP and other dynamically generated pages, it could be waiting for some part of data when it should be rendering what it already has.
I think the culprit is tables. I suspect that Safari needs all the contents of a table, or at least a chunk of it before it attempts to render it whereas other browsers just render what they have and modify it as more content comes. If your PHP script is using large tables (which I suspect it is), perhaps you can try breaking it into smaller tables (each about the size of a screen) and see what happens.
Code Master
The URL for the validator might be:
http://validator.w3c.org
However, I have also noticed that tables are very slow in Safari. Not so much on the rendering side of things, but just scrolling the screen when there is a large table. However, I am using a 400 Mhz G3, so maybe I shouldn't expect too much.
Do you use CSS, or do you have a bunch of font and color tags inside of each table cell? Using CSS might make the page render faster.
PHP and MySQL should have no impact at all, because the server processes the code, not the client. (I realize that you know this already if you're writing PHP code)
Are you using JavaScript? I heard that JavaScript was significantly improved in recent versions of Safari, but I don't really know if that is true. However, if you are using a slightly outdated version of Safari, that may be relevant.
Another reason to hate the idea of upgrading? Do later Mac OS X versions slow the internet whilst older ones do not?
Originally posted by Morgoth
Another reason to hate the idea of upgrading? Do later Mac OS X versions slow the internet whilst older ones do not?
Later versions of OS X are faster than earlier versions, in general.
Mac networking has gotten slicker with time, in my opinion (ie: caching DNS queries automatically, etc)
however, I've notice huge speed improvements in the latest safari betas as well as network speed improvements with tiger 10.4 beta (HUGE wireless performance gains)
Originally posted by webmail
I think you point out something that is hard to clock.. But anybody who sits at a windows machine all day and then goes home to their mac will notice that the internet feels more "sluggish" even on a faster mac...
I don't. Perhaps it's just the sites I visit.
Originally posted by webmail
I think you point out something that is hard to clock.. But anybody who sits at a windows machine all day and then goes home to their mac will notice that the internet feels more "sluggish" even on a faster mac...
however, I've notice huge speed improvements in the latest safari betas as well as network speed improvements with tiger 10.4 beta (HUGE wireless performance gains)
For the most part, the connection at work tends to be faster than the connection at home.
http://www.quirksmode.org/
I'm not a programmer, but it is somewhat enlightening and may give some insight into performance differences.
Originally posted by Mr. Me
For the most part, the connection at work tends to be faster than the connection at home.
Generally however I have a dual 1.25ghz powermac and 2 pcs at work. One of which is 700mhz dell (crapola) with 256mb of ram and windows 2000. It pulls up pages faster than any mac web browser i've tried... :P even opens appleinsider faster ;-)