David Gibbons - 2010-10-28 16:20:03
I find it rather unbelievable that adding an intermediary proxy layer to implement asynchronous PHP will 'accelerate' any script unless it's running on a *very* heavily overloaded and poorly optimized server.
Why would you not leverage the functionality built into native javascript and split out PHP tasks than can be run synchronously into multiple javascript calls against separate PHP scripts (running on separate vhosts if necessary for load management)? This method would implement asynchronous calls natively.
Using native PHP, if you have say four database calls that block each other, you could use the session or a separate database table or even a memcache variable to communicate status messages between the scripts. This way there's no middle man, no extra memory usage for a proxy layer and a completely native implementation not influenced by any PHP libraries that may be incompatible with callback functions.