[twitter-dev] Re: collecting followers and friends
Actually, both the lists are stored in the database, and the displays are via SQL. Also, the display is not on the home page. I tried to run the accumulation process in the background. But neither shell_exec nor pcntl_fork was of any help. Tried this too http://www.shapeshifter.se/2008/08/04/asynchronous-background-execution-with-php/ but nothing worked. But if i run the program from command line, it works. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: collecting followers and friends
Run this in the background - don't do it on page load if you can avoid it. Also, if you are using PHP to compare the lists don't use array_diff as this is very slow on large arrays. On Mar 5, 8:14 am, amit debnath amitdebnath...@gmail.com wrote: I have a site for twitter based tools. One of the options was to enable users see the people their non-friend-followers and non-follower-friends. The only way I could see to achieve this is to gather and store the complete list of followers and friends locally and calculate from that. This is done at the time of login(oAuth) . For small accounts it is working ok. But for large accounts (one of the accounts for testing with has a total number of followers+friends 3) it is taking from 20 seconds to anything up to 2 minutes(at 5000 per call, this is taking 6 calls). Looking for any suggestions to improve the performance -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk