note 128166 added to functional.parallel

From: Date: Mon, 30 Jan 2023 01:53:46 +0000
Subject: note 128166 added to functional.parallel
Groups: php.notes 
Request: Send a blank email to php-notes+get-220122@lists.php.net to get a copy of this message
Consider cost of bootstraping. In the parallel\Runtime API the bootstrap routine is executed each time "new Runtime()" is called. So if you create e.g. 8 Runtimes, the bootstrap code will be executed 8 times and it does not depend on the number of Futures. On the other hand, in the case of Functional API each "parallel\run()" causes the boostrap code to be called again. This can be painfull if your tasks environement is complex (eg. huge datasets that need to be prepared in advance and thausends of relatively small tasks). ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.158.213 (proxied: 85.221.144.172) ---- Manual Page -- https://php.net/manual/en/functional.parallel.php Edit -- https://main.php.net/note/edit/128166 Del: integrated -- https://main.php.net/note/delete/128166/integrated Del: useless -- https://main.php.net/note/delete/128166/useless Del: bad code -- https://main.php.net/note/delete/128166/bad+code Del: spam -- https://main.php.net/note/delete/128166/spam Del: non-english -- https://main.php.net/note/delete/128166/non-english Del: in docs -- https://main.php.net/note/delete/128166/in+docs Del: other reasons-- https://main.php.net/note/delete/128166 Reject -- https://main.php.net/note/reject/128166 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220122) next »