Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:62922 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 45013 invoked from network); 10 Sep 2012 12:04:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Sep 2012 12:04:30 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@mindplay.dk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@mindplay.dk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mindplay.dk from 209.85.212.42 cause and error) X-PHP-List-Original-Sender: rasmus@mindplay.dk X-Host-Fingerprint: 209.85.212.42 mail-vb0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:52161] helo=mail-vb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B4/B0-35669-C47DD405 for ; Mon, 10 Sep 2012 08:04:29 -0400 Received: by vbbfs19 with SMTP id fs19so2599459vbb.29 for ; Mon, 10 Sep 2012 05:04:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=1wDi91WYOdFTG4a8JWQY4zgw2Ry0irIh8CjsDMajsG8=; b=gQE+k67U4mMCK7EJzVnNixhEnQrcz7Ni9Vr57x+eXh44S/9u6ghONzDiHWttkYqWze nX0uonU0UsRtvFWrdpb9GB1V+80107+0WLfpfQfK7R30xVMMkaqk5SLB3foB0dPugNnZ t5it1vXdtdlKBKMgKQcxVS/OiY7SYTzMH59WgFpMSKN0hVSIFhbOAAOZnVgZZ5AM1C/L Eyy0mhHAbxNjDbv4sDPkromIyxbxuXk+jjvvxnXBDbuFhkWQzVP38hWOfvnPE0pUmHg5 L1neowEqkwRAZL7aYVXHBuvmBNxDmidoOnuF9LspHNRYLSHBEFzyeD49hyN0mx5z3R0t AFTg== MIME-Version: 1.0 Received: by 10.52.21.82 with SMTP id t18mr15424034vde.66.1347278665741; Mon, 10 Sep 2012 05:04:25 -0700 (PDT) Received: by 10.58.91.162 with HTTP; Mon, 10 Sep 2012 05:04:25 -0700 (PDT) Date: Mon, 10 Sep 2012 08:04:25 -0400 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=20cf307d00b448f69a04c957c210 X-Gm-Message-State: ALoCoQkb6PM+d7PkcNdtPp6hS555oFIsWIhjzvWs70eUdf6CU1hSTokOVq1WvC7EQELT63LLdD3n Subject: progressive buffer allocation From: rasmus@mindplay.dk (Rasmus Schultz) --20cf307d00b448f69a04c957c210 Content-Type: text/plain; charset=ISO-8859-1 Interesting technique: http://ayende.com/blog/158721/rule-out-the-stupid-stuff-first-select-still-ainrsquo-t-broken I wonder if this is applicable to PHP in any way? Would stream buffers benefit from something like this? Perhaps not, I just thought it was interesting enough to share - it's not a technique I was familiar with... :-) --20cf307d00b448f69a04c957c210--