Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89487 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8891 invoked from network); 30 Nov 2015 09:31:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Nov 2015 09:31:38 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.48 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.215.48 mail-lf0-f48.google.com Received: from [209.85.215.48] ([209.85.215.48:34520] helo=mail-lf0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 17/09-04444-9771C565 for ; Mon, 30 Nov 2015 04:31:37 -0500 Received: by lffu14 with SMTP id u14so188887835lff.1 for ; Mon, 30 Nov 2015 01:31:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RJGIXbDsl1ZjGtnNS9wdugi4d8O1Xt3UaJTTx/d8R7Q=; b=zLGvYqAUCEp61/rPHi3r+a3cuCfjRj8Pi667t7o2p7W6MXM/baeOfLeCyEyI/iH2m6 3ssBfhUE7BXMDcgAM7/Gj3nLAotM+UnXpRWt0G0cJN/SQ9zILTb5gzf3UCQ7F45BkAKj RyAMK5O338jT09oalOCw3jd8MZ3O+O3wOBPe/wc7gxmGpPHb6jZl2xPqSI9tOXRqpDf8 rU/MDGm1HzWyY5BZeHjg4fNNavLeA5ltjjDC5MH/k8t3Ukwt5LccGTELKQNPU+/iGrUj /GfGQvVFEB29KOBGsMsQUOZ4ajPE314Rc+9f6iZkOSvn6I4dQXLDr0p3uDczLW+QFoE1 KYFA== MIME-Version: 1.0 X-Received: by 10.112.200.229 with SMTP id jv5mr25537488lbc.23.1448875893493; Mon, 30 Nov 2015 01:31:33 -0800 (PST) Received: by 10.114.80.39 with HTTP; Mon, 30 Nov 2015 01:31:33 -0800 (PST) In-Reply-To: <565AF32E.60606@lsces.co.uk> References: <009301d128fa$bb2675d0$31736170$@lool.fr> <565AF32E.60606@lsces.co.uk> Date: Mon, 30 Nov 2015 16:31:33 +0700 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Proof of Concept : 3.5x and more Performance Boost for php7 using 4 cores From: pierre.php@gmail.com (Pierre Joye) On Sun, Nov 29, 2015 at 7:44 PM, Lester Caine wrote: > On 29/11/15 04:44, Levi Morrison wrote: >>> A multicore php8 or php9? Wouldn't be cool???? >> Honestly, PHP is a poor language for parallel computing. This is >> because PHP is a web-focused language. The the most common setup ends >> up with a blocking request on a network call. What we really need is >> an improved asynchronous model so that we can wait on those network >> requests more efficiently. > > I'd second that. Since all of MY data is stored in a database, requests > to that use other cores on the processor or even other processors, and > so to be able to carry on building other areas of material while waiting > for one or more database or other services to return will be a lot more > productive than trying to do the thread that is waiting for a result > faster? In addition, having several users each getting a single core to > handle their request seems a lot more practical than one request hogging > all of the resources? > > There are applications that are suitable for high power parallel > processing, and these are ones where reusing GPU resources which are > inherently parallel data aware is much more practical freeing the MPU > resources to handle threads that are less reliant on parallel data. > > Adding extensions such as the Lapack which can be expanded to take > advantage of the available hardware to parallel process the data set is > a lot more practical than trying to make an inherently serial process > 'parallel'?. I fully agree here. Also PHP exists to serve request as fast as possible. Any tasks being so expensive that parallelism is required is the best candidate to be delegated outside the request handling, preferably on another box. Also an extension fits the main usage for such features, in CLI. -- Pierre @pierrejoye | http://www.libgd.org