I'm using this script
http://www.scriptol.com/rss/rss-reader.php
to gather many rss feeds (it could maybe be up to 50, 60 external feeds). The problem is; this is taking really long time some times, even with "just" 30 feeds. I'm even some times just getting an error message (this is after loading a while). I know it's gotta take some time to go through all the feeds, but is there any modifications I could to with script to make it faster? Or do you know of any other script that would be better? I'm using the RSS_Display() function.
Gathering RSS feeds; takes really long time
Moderator: General Moderators
-
WebbieDave
- Forum Contributor
- Posts: 213
- Joined: Sun Jul 15, 2007 7:07 am
Re: Gathering RSS feeds; takes really long time
Where are your bottlenecks? If it's waiting for responses from the external servers there's nothing you can do there. Perhaps a particular feed is causing the most wait. You can find out how long each feed takes using microtime:
http://us.php.net/manual/en/function.microtime.php
http://us.php.net/manual/en/function.microtime.php
Re: Gathering RSS feeds; takes really long time
Profiling the script is a good idea. Also check your server's monitoring if you have access to it. Look at memory and CPU usage when the script runs (possibly you are limited by your hosting package).