Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82502 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94091 invoked from network); 11 Feb 2015 23:26:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Feb 2015 23:26:32 -0000 Authentication-Results: pb1.pair.com header.from=rdlowrey@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rdlowrey@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.178 as permitted sender) X-PHP-List-Original-Sender: rdlowrey@gmail.com X-Host-Fingerprint: 209.85.213.178 mail-ig0-f178.google.com Received: from [209.85.213.178] ([209.85.213.178:36221] helo=mail-ig0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/A4-02515-725EBD45 for ; Wed, 11 Feb 2015 18:26:32 -0500 Received: by mail-ig0-f178.google.com with SMTP id hl2so269534igb.5 for ; Wed, 11 Feb 2015 15:26:29 -0800 (PST) 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=aczaaUl5ei7hb1T9Nn0NbNBojsSMyUDHe+2WAypgGMs=; b=hMC7KjAhtpKNiab5PQI/lPyP9DE8aVGveJDGADLlfG/xeyiecXohWgGH+s8mOZMf/F QakGpIz9bNE5X00Yj1N7QRLndz/pePnQaGWjbVJjWqUTKvWNKC29r2pvnO6nVrD2IcYG vj4SvbWxoZJSNtym2448ByZx2rMMPgibRg0gEDd9H522hoYhN99Isfa9g96TLClP0rg+ C25OG46wERm2uGkYEjhS2kCxdqj6I2HMWVVTHSV79VqpENzq/wpqRy0jv9FH4kFvAVz1 nuUn0mpvp78jJD8S7aI8kuohmKqypS36BMY+uLI3VFljG7peiLbaxVXJugkA8xJgE9XB qq/g== MIME-Version: 1.0 X-Received: by 10.107.12.13 with SMTP id w13mr1483002ioi.28.1423697189089; Wed, 11 Feb 2015 15:26:29 -0800 (PST) Sender: rdlowrey@gmail.com Received: by 10.50.156.198 with HTTP; Wed, 11 Feb 2015 15:26:29 -0800 (PST) In-Reply-To: <54DBD4A9.8030402@php.net> References: <54DBD4A9.8030402@php.net> Date: Wed, 11 Feb 2015 18:26:29 -0500 X-Google-Sender-Auth: 8Gsec8o8KEcQ-cflfLjcFUzzdkY Message-ID: To: Michael Wallner Cc: Daniel Lowrey , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113ed6543939bd050ed8553a Subject: Re: [PHP-DEV] [RFC] [DISCUSSION] pecl_http From: rdlowrey@php.net (Daniel Lowrey) --001a113ed6543939bd050ed8553a Content-Type: text/plain; charset=UTF-8 On Wed, Feb 11, 2015 at 5:16 PM, Michael Wallner wrote: > > On 06/02/15 17:44, Daniel Lowrey wrote: > > If you doubt that this is a solved problem in userland consider the > > performance of my own 100% userland HTTP client demonstrated here > > without the use of curl or any other extensions: > > > > https://gist.github.com/rdlowrey/54171625334670ccb9f5 > > I can replicate about 2.5s with artax/master on http://example.org, > which is about the same pace like pecl_http. With pipelining enabled > pecl_http/master peeks at about 0.7s, but what's the point? > > PS: I'm on an advertised 150/15 Mbit connection. > > -- > Regards, > Mike The point isn't *zomg this one thing I did in userland is super fast.* It's irrelevant. The point here is that HTTP transfers are an IO-bound operation and as such the benefit from compiling them is relatively small. Add that to the fact that we already have tools to do exactly this in the standard distribution (curl) and well-known, well-tested userland tools for any use-case you can imagine. In my opinion that adds up to not needing another way to do the same thing in the standard distribution. Who benefits from bundling another HTTP client? Why bring in two additional pecl dependencies for HTTP connections which *rarely* make sense to persist across web SAPI requests? Is there a plan to also deprecate ext/curl? These are questions that aren't resolved in a satisfactory way as far as I'm concerned. I honestly don't care that much, I just don't think "because we can" necessarily means "we should" when there's no obvious need for more of the same overlapping functionality. That's what pecl is for, right? --001a113ed6543939bd050ed8553a--