Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:74951 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11573 invoked from network); 17 Jun 2014 14:28:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jun 2014 14:28:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.41 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.219.41 mail-oa0-f41.google.com Received: from [209.85.219.41] ([209.85.219.41:60043] helo=mail-oa0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3A/22-00242-7A050A35 for ; Tue, 17 Jun 2014 10:28:55 -0400 Received: by mail-oa0-f41.google.com with SMTP id l6so8756654oag.28 for ; Tue, 17 Jun 2014 07:28:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=VI/7GKESPz6gJ6dVopNcNi/mlNIRsQK6M6ykfaMx5y0=; b=J85ET8fLTuwk2PCAbNo0jrnkXUgArLbZnUNnrgq+t3yBjWif7K4knNPgR33XtW2QID kw4jtex4rPYeY/lc7coDy69Qo7HExUQ693+rS8Vw6BTrnQrA/h/fapJ33Iyf6Vl9ucS8 kdnErfcQYXvi+yF8lEzy61nOCwu+vI2Ypiw41qh7HdNRtPEGqh8KW/fN0JEsMsxVXnlu /gTpuY0QBoshhwe5WPk0UZLPn6WOXGHCJNNsQYKRTDKU02+odA2HLvBfgqNta1ABk4td ZOV08hSFF0wsx/883+eeVQ8yFPD8PA6msHGkAIHL9d9gXqxJNHxNBd6LyzTgeLIeBadl TFzg== MIME-Version: 1.0 X-Received: by 10.60.39.103 with SMTP id o7mr26539061oek.17.1403015332702; Tue, 17 Jun 2014 07:28:52 -0700 (PDT) Sender: morrison.levi@gmail.com Received: by 10.76.77.100 with HTTP; Tue, 17 Jun 2014 07:28:52 -0700 (PDT) In-Reply-To: References: Date: Tue, 17 Jun 2014 08:28:52 -0600 X-Google-Sender-Auth: 2h1lsJzrvHwYIFAIVXHhGYrHpQM Message-ID: To: Julien Pauli Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Refactoring our IO multiplexing layer From: levim@php.net (Levi Morrison) On Tue, Jun 17, 2014 at 4:04 AM, Julien Pauli wrote: > So basically, the first question will be do we need it ? I would like it, yes. Having a IO abstraction layer internally would be really nice. I'm not up-to-date on all the PHP extensions that would facilitate this behavior, but perhaps some improved version of the libuv extensions would be great. I am not sure on the health of those extensions (I believe there are at least two of them) but it's worth investigating at least. Potentially it could save us some work as well as well as give us a bit more confidence. > Second question will be : do we use, and then link against libevent > (or any other lib that could fit the need) , or do we develop our own > layer, based on the FPM layer which is pretty nicely done (just not > shareable elsewhere at the moment). I also favor libuv over libevent; to be completely fair I have only used both of them a little bit but I liked libuv a bit more. We definitely shouldn't roll our own. If we had corporate funding then rolling our own would have the advantage of not having to wait for upstream merges for bug fixes, but I don't think we have the manpower or interest to build and maintain our own.