Speed question -- probably newbie
Brought to you by:
iridium
From: Michael G. <mi...@wr...> - 2003-01-16 03:56:52
|
First of all, let me say thanks to the developers. This is a cool tool. And as a beginning PHP coder, I was thrilled with how quickly I could get it al= l to work. But here=B9s my question. I=B9ve built a page that displays collects METAR, extracts and displays temperature for about ten different cities. When run on the Apache server on my local machine (Mac OS X.2), everything=B9s great and the page loads quickly. When I uploaded the same page to my webhosting service (which is running Apache on Linux), it was SL-O-O-O-O-W =8B took a full minute to load. So then I took advantage of the test page that comes with the package, whic= h as you may notice actually gives the time taken to generate the page. For the same city, it typically takes around 800 ms to load on my local machine= , but 17-20 seconds on my web host. I then uploaded the same file to another web host (running a Windows 2000 server) and it was as fast as my local host. What do you think is the problem with the slow server =8B crappy parser, slow connection to the METAR site, misconfiguration of phpweather (I have not changed the default config)? Don=B9t know if this helps, but I stripped all the weather calls out of my original page (which then loaded quite snappily) and started to add them back one at a time. Each one added about five seconds to load time. Any ideas would be greatly appreciated. Thanks again for this wonderful piece of software. m |