Parallelize the fetches

moshe weitzman - December 21, 2006 - 20:33
Project:OpenSearch Aggregator
Version:4.7.x-1.x-dev
Component:Other
Category:feature request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

if there were some way to run the queries in parallel we could give faster pages. might be out of scope for php alone. not sure.

#1

aufumy - August 5, 2008 - 23:19
Version:<none>» 4.7.x-1.x-dev
Status:active» won't fix

There are likely other improvements that can be made to give faster pages, including the amount of data cached before thinking about parallel processes.

#2

janusman - March 19, 2009 - 15:56

You can open simultaneous non-blocking sockets with fsockopen(). For an example implementation see

http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/millennium/...

in functions _millennium_nonblocking_http_request() and millennium_fetch_recordpage_preload().

 
 

Drupal is a registered trademark of Dries Buytaert.